Skip to content

Commit

Permalink
fix for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Mar 17, 2024
1 parent f94fc13 commit 4e41b46
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 @@ -780,7 +780,7 @@ def update_tm_hm_moves_obtained(self):
# Scan party
for i in range(self.read_m("wPartyCount")):
_, addr = self.pyboy.symbol_lookup(f"wPartyMon{i+1}Moves")
for move_id in self.pyboy.memory[addr : addr + 4] in TM_HM_MOVES:
for move_id in self.pyboy.memory[addr : addr + 4]:
if move_id in TM_HM_MOVES:
self.moves_obtained[move_id] = 1
"""
Expand Down

0 comments on commit 4e41b46

Please sign in to comment.