summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-07 23:37:37 +0200
committerGitHub <noreply@github.com>2021-10-07 23:37:37 +0200
commit49e7e049aba1dad3d778a4aea4afa23203ad795b (patch)
treebec92dd8dabf271835a6c0447af242bc77926a95 /core
parent6090f90743b53d9e80150528b7db940688be1be4 (diff)
parent9e5fdbc79d4e6666f2ab184e7721e87c7411eb40 (diff)
Merge pull request #53422 from KoBeWi/add_LUA_to_Godot
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 {