mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Core: Fix Freed Object
booleanization
This commit is contained in:
parent
9425535602
commit
68481b6cdb
@ -951,7 +951,7 @@ bool Variant::is_zero() const {
|
||||
return *reinterpret_cast<const ::RID *>(_data._mem) == ::RID();
|
||||
}
|
||||
case OBJECT: {
|
||||
return _get_obj().obj == nullptr;
|
||||
return get_validated_object() == nullptr;
|
||||
}
|
||||
case CALLABLE: {
|
||||
return reinterpret_cast<const Callable *>(_data._mem)->is_null();
|
||||
|
Loading…
Reference in New Issue
Block a user