From 0f1577d3145f2f29503a67e2f11341b10c9215e6 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 15 Dec 2020 10:16:21 -0800 Subject: [PATCH] Fix crash in new game generation. Fixes https://github.com/Khopa/dcs_liberation/issues/583 (cherry picked from commit 793b356c01d9bb908b893ac5cfa45a2b181eda3b) --- game/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/game.py b/game/game.py index c15d3575..423dbf81 100644 --- a/game/game.py +++ b/game/game.py @@ -90,7 +90,6 @@ class Game: self.informations = [] self.informations.append(Information("Game Start", "-" * 40, 0)) self.__culling_points: List[Point] = [] - self.compute_conflicts_position() self.__destroyed_units: List[str] = [] self.savepath = "" self.budget = player_budget @@ -225,6 +224,7 @@ class Game: def on_load(self) -> None: LuaPluginManager.load_settings(self.settings) ObjectiveDistanceCache.set_theater(self.theater) + self.compute_conflicts_position() def pass_turn(self, no_action: bool = False) -> None: logging.info("Pass turn")