From d319839a64330ac9d13d28a9ab72677545066e07 Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 19 Sep 2024 21:34:04 +0200 Subject: Check if types are the same in add missing keys function --- client/global.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/global.gd b/client/global.gd index 0648d80a..a4f7ed2a 100644 --- a/client/global.gd +++ b/client/global.gd @@ -226,7 +226,7 @@ func array_eq(a, b): func add_missing_keys(dict: Dictionary, reference: Dictionary): for k in reference.keys(): - if !dict.has(k): + if !dict.has(k) or typeof(dict[k]) != typeof(reference[k]): dict[k] = reference[k] else: if dict[k] is Dictionary: -- cgit v1.2.3-70-g09d2