diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-10-07 10:58:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-07 10:58:45 +0200 |
commit | 44d82b3a070b7ed8973d9e8bc6e58da1084fc7d1 (patch) | |
tree | 544ab66de3ef4c6a20f2739decc4e98212c3207a /core/variant_op.cpp | |
parent | c27b2adb10ea7077008d4f8b356e3561d05bad6a (diff) | |
parent | 4f7b33cdcfdcbc11bcc506018dff1b06db3cf3f6 (diff) | |
download | redot-engine-44d82b3a070b7ed8973d9e8bc6e58da1084fc7d1.tar.gz |
Merge pull request #22752 from aaronfranke/equals-redundant
Remove redundant "== true" and "== false" code
Diffstat (limited to 'core/variant_op.cpp')
-rw-r--r-- | core/variant_op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp index 7389b7a71a..f230f12b5d 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -521,7 +521,7 @@ void Variant::evaluate(const Operator &p_op, const Variant &p_a, const Dictionary *arr_a = reinterpret_cast<const Dictionary *>(p_a._data._mem); const Dictionary *arr_b = reinterpret_cast<const Dictionary *>(p_b._data._mem); - _RETURN((*arr_a == *arr_b) == false); + _RETURN(*arr_a != *arr_b); } CASE_TYPE(math, OP_NOT_EQUAL, ARRAY) { |