Skip to content

Commit

Permalink
fixed classic observe bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benblack769 committed Apr 1, 2021
1 parent 3e856cf commit 9603819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pettingzoo/utils/wrappers/terminate_illegal.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def reset(self):

def observe(self, agent):
obs = super().observe(agent)
self._prev_obs = obs
if agent == self.agent_selection:
self._prev_obs = obs
return obs

def step(self, action):
Expand Down

0 comments on commit 9603819

Please sign in to comment.