From 48d5b8a8b88a1574d4b7c1e38ee714edb7d808e6 Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 11 Sep 2024 17:22:49 +0200 Subject: [PATCH] Fix Dictionary.merge() type validation --- core/variant/dictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variant/dictionary.cpp b/core/variant/dictionary.cpp index f2522a4545c..0754814d35f 100644 --- a/core/variant/dictionary.cpp +++ b/core/variant/dictionary.cpp @@ -261,7 +261,7 @@ void Dictionary::merge(const Dictionary &p_dictionary, bool p_overwrite) { Variant key = E.key; Variant value = E.value; ERR_FAIL_COND(!_p->typed_key.validate(key, "merge")); - ERR_FAIL_COND(!_p->typed_key.validate(value, "merge")); + ERR_FAIL_COND(!_p->typed_value.validate(value, "merge")); if (p_overwrite || !has(key)) { operator[](key) = value; }