Avoid restoring old AircraftType data

This solves the bug where the default_livery would get overwritten with whatever value was already present from data that's loaded from the last campaign, which was usually set to None...
Possibly this also solves the bug where Armed Recon is suddenly not available anymore, because most likely the tasking was being overwritten as well...
This commit is contained in:
Raffson 2024-08-25 15:20:16 +02:00
parent ced69c98fc
commit aa26a2fa79
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -246,7 +246,6 @@ class AircraftType(UnitType[Type[FlyingType]]):
# Update any existing models with new data on load.
updated = AircraftType.named(state["variant_id"])
updated.__dict__.update(state)
self.__dict__.update(updated.__dict__)
def __post_init__(self) -> None: