From 824ddeea3fd5f8572790f1129fce4f738600dc4a Mon Sep 17 00:00:00 2001 From: Stanislav Labzyuk Date: Mon, 11 Nov 2024 17:15:52 +0100 Subject: [PATCH] Fix comparison of callables --- core/variant/callable_bind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/variant/callable_bind.cpp b/core/variant/callable_bind.cpp index d82aa3583d0..afb889551ed 100644 --- a/core/variant/callable_bind.cpp +++ b/core/variant/callable_bind.cpp @@ -43,7 +43,7 @@ bool CallableCustomBind::_equal_func(const CallableCustom *p_a, const CallableCu const CallableCustomBind *a = static_cast(p_a); const CallableCustomBind *b = static_cast(p_b); - if (!(a->callable != b->callable)) { + if (a->callable != b->callable) { return false; } @@ -185,7 +185,7 @@ bool CallableCustomUnbind::_equal_func(const CallableCustom *p_a, const Callable const CallableCustomUnbind *a = static_cast(p_a); const CallableCustomUnbind *b = static_cast(p_b); - if (!(a->callable != b->callable)) { + if (a->callable != b->callable) { return false; }