diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index fd3e70a..de38e26 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -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 """