dictionary check when loading! (:

This commit is contained in:
Harmony Honey 2023-12-07 01:46:56 -05:00
parent 89017d0f59
commit cec6346f70

View file

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