summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-10-05 02:48:33 +0200
committerkobewi <kobewi4e@gmail.com>2021-10-05 12:17:13 +0200
commit9e5fdbc79d4e6666f2ab184e7721e87c7411eb40 (patch)
treeda124a91fd627b1f9adc2a26170104613661b45d /core
parent2e8cba0bd9aba40d559368c7cfd01305000a5d00 (diff)
Fix LUA-style assignment in Dictionary
Diffstat (limited to 'core')
-rw-r--r--core/variant/variant_setget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/variant/variant_setget.cpp b/core/variant/variant_setget.cpp
index 3bba68d75e..4abb51ca7c 100644
--- a/core/variant/variant_setget.cpp
+++ b/core/variant/variant_setget.cpp
@@ -239,7 +239,8 @@ void Variant::set_named(const StringName &p_member, const Variant &p_value, bool
*v = p_value;
r_valid = true;
} else {
- r_valid = false;
+ VariantGetInternalPtr<Dictionary>::get_ptr(this)->operator[](p_member) = p_value;
+ r_valid = true;
}
} else {