Fix migrator issue in _update_packagewaypoints

This commit is contained in:
Raffson 2023-04-15 20:38:51 +02:00
parent 6517dc0de8
commit bf23ee4e8f
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -47,8 +47,8 @@ class Migrator:
def _update_packagewaypoints(self) -> None:
for c in self.game.coalitions:
for p in c.ato.packages:
if p.flights:
try_set_attr(p.waypoints, "initial", PackageWaypoints.create(p, c))
if p.waypoints:
try_set_attr(p.waypoints, "initial", None)
def _update_package_attributes(self) -> None:
for c in self.game.coalitions: