summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-19 21:34:04 +0200
committertpart <tpart120@proton.me>2024-09-19 21:34:04 +0200
commitd319839a64330ac9d13d28a9ab72677545066e07 (patch)
treeb3239de79d159988cc0ae0715b3e163b94e7fef4 /client
parent02af3843b695857e9832434336cf093968f00ff5 (diff)
downloadhurrycurry-d319839a64330ac9d13d28a9ab72677545066e07.tar
hurrycurry-d319839a64330ac9d13d28a9ab72677545066e07.tar.bz2
hurrycurry-d319839a64330ac9d13d28a9ab72677545066e07.tar.zst
Check if types are the same in add missing keys function
Diffstat (limited to 'client')
-rw-r--r--client/global.gd2
1 files changed, 1 insertions, 1 deletions
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: