From 91131b2b63ab4118cb3b947fbd5052fc4f6310bc Mon Sep 17 00:00:00 2001 From: TheApplePieGod Date: Thu, 30 Jan 2025 17:20:54 -0500 Subject: [PATCH] Fix disintegrate crash --- battlecode25/engine/game/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battlecode25/engine/game/game.py b/battlecode25/engine/game/game.py index e254517..e841fe5 100644 --- a/battlecode25/engine/game/game.py +++ b/battlecode25/engine/game/game.py @@ -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: