From aa26a2fa797a768e4787c74e2f524860f95b8b10 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sun, 25 Aug 2024 15:20:16 +0200 Subject: [PATCH] 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... --- game/dcs/aircrafttype.py | 1 - 1 file changed, 1 deletion(-) diff --git a/game/dcs/aircrafttype.py b/game/dcs/aircrafttype.py index 598c39f4..9ae36de0 100644 --- a/game/dcs/aircrafttype.py +++ b/game/dcs/aircrafttype.py @@ -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: