diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-11 14:18:18 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-11 14:18:18 -0600 |
commit | f233d186eff4ee99d2892a251135e81403da81c3 (patch) | |
tree | bacc15f03ae483403b1069126dba61ad717a92bf | |
parent | 80345758ff6773d06a83c082f4f2a1c3262f5cbb (diff) | |
parent | 68481b6cdb614844ce4c10c2a4e347f61c7ed653 (diff) | |
download | redot-engine-f233d186eff4ee99d2892a251135e81403da81c3.tar.gz |
Merge pull request #93885 from dalexeev/core-fix-freed-object-booleanization
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 65bfc29a55..54936eb8a2 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(); |