Fix object check on Variant key checker

This commit is contained in:
George Marques 2020-12-10 17:15:00 -03:00
parent e4e9231420
commit 0abacae2d3
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D

View File

@ -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;
}