Fix missing parameter for initialize_turn

The recent changes missed to add the required parameter also for the ui callers.
This commit is contained in:
RndName
2022-02-26 21:43:08 +01:00
parent a53812c0fb
commit bc41261009
3 changed files with 6 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ from game import Game
from game.armedforces.forcegroup import ForceGroup
from game.data.groups import GroupRole, GroupTask
from game.point_with_heading import PointWithHeading
from game.sim.gameupdateevents import GameUpdateEvents
from game.theater import TheaterGroundObject
from game.theater.theatergroundobject import (
VehicleGroupGroundObject,
@@ -218,7 +219,7 @@ class QGroundObjectTemplateLayout(QGroupBox):
)
# Replan redfor missions
self.game.initialize_turn(for_red=True, for_blue=False)
self.game.initialize_turn(GameUpdateEvents(), for_red=True, for_blue=False)
GameUpdateSignal.get_instance().updateGame(self.game)