fix: savegame parsing failure no longer crashes.
This commit is contained in:
parent
0072490f8b
commit
8fad1b60df
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue