From 3c2b347f65e5d3ef61eef8a1636fdd7010f367b0 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Wed, 5 Jun 2024 21:47:57 -0400 Subject: [PATCH] Fix symbol lookup usage --- pokemonred_puffer/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index 412813b..7ca9738 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -583,7 +583,7 @@ def step(self, action): if self.save_video and self.step_count == 0: self.start_video() - _, wMapPalOffset = self.pyboy.symbol_lookup("wMapPalOffset")[1] + _, wMapPalOffset = self.pyboy.symbol_lookup("wMapPalOffset") if self.auto_flash and self.pyboy.memory[wMapPalOffset] == 6: self.pyboy.memory[wMapPalOffset] = 0