Skip to content

Commit

Permalink
Fix comparison of callables
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMessiah committed Nov 11, 2024
1 parent 0f5f3bc commit 824ddee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/variant/callable_bind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bool CallableCustomBind::_equal_func(const CallableCustom *p_a, const CallableCu
const CallableCustomBind *a = static_cast<const CallableCustomBind *>(p_a);
const CallableCustomBind *b = static_cast<const CallableCustomBind *>(p_b);

if (!(a->callable != b->callable)) {
if (a->callable != b->callable) {
return false;
}

Expand Down Expand Up @@ -185,7 +185,7 @@ bool CallableCustomUnbind::_equal_func(const CallableCustom *p_a, const Callable
const CallableCustomUnbind *a = static_cast<const CallableCustomUnbind *>(p_a);
const CallableCustomUnbind *b = static_cast<const CallableCustomUnbind *>(p_b);

if (!(a->callable != b->callable)) {
if (a->callable != b->callable) {
return false;
}

Expand Down

0 comments on commit 824ddee

Please sign in to comment.