mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix save-compatibility issue
This commit is contained in:
parent
0d04e0c72e
commit
7ea144e7c7
@ -76,7 +76,7 @@ class Squadron:
|
|||||||
if "id" not in state:
|
if "id" not in state:
|
||||||
state["id"] = uuid4()
|
state["id"] = uuid4()
|
||||||
if "use_livery_set" not in state:
|
if "use_livery_set" not in state:
|
||||||
state["use_livery_set"] = len(state["livery_set"]) > 0
|
state["use_livery_set"] = len(state.get("livery_set", [])) > 0
|
||||||
self.__dict__.update(state)
|
self.__dict__.update(state)
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user