aboutsummaryrefslogtreecommitdiff
path: root/core/globals.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-02-06 00:38:39 -0300
committerJuan Linietsky2017-02-06 00:38:39 -0300
commit6f2e16306a6552d704fb2346c9abdd26e0e523b7 (patch)
treee1fadf2a05d6f04675045b9e34128ed96628e07c /core/globals.cpp
parentaf3fabeb7745e6f7f4e7fe7a299bdd234fff26a6 (diff)
downloadgodot-6f2e16306a6552d704fb2346c9abdd26e0e523b7.tar.gz
godot-6f2e16306a6552d704fb2346c9abdd26e0e523b7.tar.zst
godot-6f2e16306a6552d704fb2346c9abdd26e0e523b7.zip
Diffstat (limited to 'core/globals.cpp')
-rw-r--r--core/globals.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/globals.cpp b/core/globals.cpp
index e748f561f..ed0b6f6d8 100644
--- a/core/globals.cpp
+++ b/core/globals.cpp
@@ -125,6 +125,7 @@ bool GlobalConfig::_set(const StringName& p_name, const Variant& p_value) {
_THREAD_SAFE_METHOD_
+
if (p_value.get_type()==Variant::NIL)
props.erase(p_name);
else {