mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-23 02:34:53 +00:00
dictionary check when loading! (:
This commit is contained in:
parent
89017d0f59
commit
cec6346f70
1 changed files with 6 additions and 2 deletions
|
|
@ -254,9 +254,13 @@ func load_save():
|
|||
var key = i if (i is String) and ("-" in i) else maps[int(i)]
|
||||
notes[key] = 45260
|
||||
if save_data.has("times"):
|
||||
map_times = Dictionary(save_data["times"])
|
||||
var d = save_data["times"]
|
||||
if d is Dictionary:
|
||||
map_times = d
|
||||
if save_data.has("deaths"):
|
||||
deaths = Dictionary(save_data["deaths"])
|
||||
var d = save_data["deaths"]
|
||||
if d is Dictionary:
|
||||
deaths = d
|
||||
else:
|
||||
create_save()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue