mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
parent
ced69c98fc
commit
aa26a2fa79
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user