Commit 13d68c7
fix(gfootball): only increment elapsed_step when episode is not done
The elapsed_step counter was always incremented even when the episode
was already done (truncated/terminated). This caused the elapsed_step
value in the info dict to be one higher than expected on the final
step. Only increment when the episode continues.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6e1f5b6 commit 13d68c7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
| 301 | + | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments