From fe541426f36889d7e0275b71656f5c2db2c617ce Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 20 Jul 2023 23:12:32 -0700 Subject: [PATCH] Fix all same type aircraft sharing properties. Whatever properties were set last would apply to all aircraft of the same type because this was copied by reference. --- dcs/flyingunit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dcs/flyingunit.py b/dcs/flyingunit.py index 09bc4100..cc5379d2 100644 --- a/dcs/flyingunit.py +++ b/dcs/flyingunit.py @@ -45,7 +45,7 @@ def __init__( self.speed = 0 self.radio: Optional[AircraftRadioPresets] = None self.hardpoint_racks = True - self.addpropaircraft = _type.property_defaults if _type.property_defaults else None + self.addpropaircraft = dict(_type.property_defaults) if _type.property_defaults else None def load_from_dict(self, d): super(FlyingUnit, self).load_from_dict(d)