Fix object check on Variant key checker
This commit is contained in:
parent
e4e9231420
commit
0abacae2d3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user