Skip to content

Commit

Permalink
Fix disintegrate crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TheApplePieGod committed Jan 30, 2025
1 parent b6ff185 commit 91131b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion battlecode25/engine/game/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run_turn(robot: Robot):
self.team_info.add_execution_time(robot.team, run_time)
if self.team_info.get_execution_time(robot.team) >= GameConstants.MAX_TEAM_EXECUTION_TIME:
self.resign(robot.team)
if robot.disintegrated:
if robot.disintegrated and robot.id in self.id_to_robot:
self.destroy_robot(robot.id, True)

if self.running:
Expand Down

0 comments on commit 91131b2

Please sign in to comment.