summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-12-10 17:15:00 -0300
committerGeorge Marques <george@gmarqu.es>2020-12-10 18:18:52 -0300
commit0abacae2d3102f5b32fb9d060b94d0095382a5df (patch)
tree86d740aae6f7b1b553b67e30a6be8a2c7cfeb916 /core/variant
parente4e92314202b70d2a7092eca6c5b8af7b76d71c9 (diff)
Fix object check on Variant key checker
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant_setget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_setget.cpp b/core/variant/variant_setget.cpp
index 324adc0185..cee7465205 100644
--- a/core/variant/variant_setget.cpp
+++ b/core/variant/variant_setget.cpp
@@ -1181,7 +1181,7 @@ struct VariantKeyedSetGetObject {
static bool has(const Variant *base, const Variant *key, bool *r_valid) {
Object *obj = base->get_validated_object();
- if (obj != nullptr) {
+ if (!obj) {
*r_valid = false;
return false;
}