Skip to content

Commit

Permalink
Fix symbol lookup usage
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 6, 2024
1 parent 03966af commit 3c2b347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3c2b347

Please sign in to comment.