diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2024-07-03 09:49:47 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2024-07-03 09:49:47 +0300 |
commit | 68481b6cdb614844ce4c10c2a4e347f61c7ed653 (patch) | |
tree | 0c06c8abb6d4160a87a748781978f026b71f0186 | |
parent | 9425535602a526a1b021838a7d021a5d75a62574 (diff) | |
download | redot-engine-68481b6cdb614844ce4c10c2a4e347f61c7ed653.tar.gz |
Core: Fix `Freed Object` booleanization
-rw-r--r-- | core/variant/variant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index c1ef31c784..30a8facd67 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -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(); |