summaryrefslogtreecommitdiffstats
path: root/core/variant
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-09-11 17:22:49 +0200
committerkobewi <kobewi4e@gmail.com>2024-09-11 17:22:49 +0200
commit48d5b8a8b88a1574d4b7c1e38ee714edb7d808e6 (patch)
tree658051ff771bf57e1e7d3270d7cf2cfc4465a90d /core/variant
parent4788f54d9767425bf5435b1cc940885d357795c5 (diff)
downloadredot-engine-48d5b8a8b88a1574d4b7c1e38ee714edb7d808e6.tar.gz
Fix Dictionary.merge() type validation
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/dictionary.cpp b/core/variant/dictionary.cpp
index f2522a4545..0754814d35 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;
}