diff options
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; } |