fix: savegame parsing failure no longer crashes.

This commit is contained in:
tiger tiger tiger 2025-12-13 12:56:02 +01:00
parent 0072490f8b
commit 8fad1b60df
1 changed files with 2 additions and 1 deletions

View File

@ -221,7 +221,8 @@ func validate_board_state() -> bool:
push_error("Save %s could not be parsed: Corrupted Cards." % unique_save_name) push_error("Save %s could not be parsed: Corrupted Cards." % unique_save_name)
return false return false
for sticky in board_state.stickies.values(): for sticky in board_state.stickies.values():
if not (sticky is int or sticky is Vector2 or board_state.cards.keys().has(sticky)): print("Sticky:", sticky)
if not (sticky is int or sticky is Vector2 or sticky is float or board_state.cards.keys().has(sticky)):
push_error("Save %s could not be parsed: Corrupted Sticky Notes.") push_error("Save %s could not be parsed: Corrupted Sticky Notes.")
return false return false
return true return true