Fix save-compatibility issue

This commit is contained in:
Raffson 2024-12-31 19:36:13 +01:00
parent 0d04e0c72e
commit 7ea144e7c7
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -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: