summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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