diff options
Diffstat (limited to 'core')
-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 c1166a0a14..8be1cda37c 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -940,7 +940,7 @@ bool Variant::is_zero() const { return reinterpret_cast<const Signal *>(_data._mem)->is_null(); } case STRING_NAME: { - return *reinterpret_cast<const StringName *>(_data._mem) != StringName(); + return *reinterpret_cast<const StringName *>(_data._mem) == StringName(); } case NODE_PATH: { return reinterpret_cast<const NodePath *>(_data._mem)->is_empty(); |