From 943e7b704fa5dfd12ea0318f76b0add50e5d21f8 Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 23 Mar 2014 02:14:46 -0400 Subject: get_ram_label: Setup wram labels if they haven't been already. --- pokemontools/crystal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index dac06be..0076f67 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -7061,6 +7061,8 @@ def get_ram_label(address): """ returns a label assigned to a particular ram address """ + if not hasattr(wram, "wram_labels"): + setup_wram_labels() if address in wram.wram_labels.keys(): return wram.wram_labels[address][-1] return None -- cgit v1.2.3