diff options
author | George Marques <george@gmarqu.es> | 2020-12-10 17:15:00 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-12-10 18:18:52 -0300 |
commit | 0abacae2d3102f5b32fb9d060b94d0095382a5df (patch) | |
tree | 86d740aae6f7b1b553b67e30a6be8a2c7cfeb916 /core/variant | |
parent | e4e92314202b70d2a7092eca6c5b8af7b76d71c9 (diff) |
Fix object check on Variant key checker
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_setget.cpp | 2 |
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; } |