summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-03-23 02:14:46 -0400
committeryenatch <yenatch@gmail.com>2014-03-23 02:14:46 -0400
commit943e7b704fa5dfd12ea0318f76b0add50e5d21f8 (patch)
tree3835297131bcef28a5801b0e55bba5146fb65ee1
parentde39f7c6ff487f02d1914cc4a3260817287207c5 (diff)
get_ram_label: Setup wram labels if they haven't been already.
-rw-r--r--pokemontools/crystal.py2
1 files changed, 2 insertions, 0 deletions
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