Clear parking slots when save is loaded

This commit is contained in:
Raffson 2024-03-03 00:27:20 +01:00
parent 2fdc9bbb2d
commit d2004e5b11
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -78,6 +78,8 @@ class Migrator:
def _update_control_points(self) -> None:
is_sinai = self.game.theater.terrain.name == "SinaiMap"
for cp in self.game.theater.controlpoints:
for parking_slot in cp.parking_slots:
parking_slot.unit_id = None
is_carrier = cp.is_carrier
is_lha = cp.is_lha
is_fob = cp.category == "fob"