From cec6346f707b0ec3e8fed245f76215fe889cb9a4 Mon Sep 17 00:00:00 2001 From: Harmony Honey Date: Thu, 7 Dec 2023 01:46:56 -0500 Subject: [PATCH] dictionary check when loading! (: --- src/autoload/Shared.gd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/autoload/Shared.gd b/src/autoload/Shared.gd index a146bf4..94052f6 100644 --- a/src/autoload/Shared.gd +++ b/src/autoload/Shared.gd @@ -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: