Reinitialize flights upon abort

This commit is contained in:
Raffson 2024-01-28 14:44:17 +01:00
parent a2494e467e
commit 8d56e2d3bb
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -237,5 +237,7 @@ class QWaitingForMissionResultWindow(QDialog):
def reset_game_state(self):
self.sim_controller.set_game(self.game)
for _, f in self.game.db.flights.objects.items():
f.state.reinitialize(self.game.conditions.start_time)
GameUpdateSignal.get_instance().updateGame(self.game)
self.close()