ソースを参照

Fix comparison of callables

Stanislav Labzyuk 11 ヶ月 前
コミット
824ddeea3f
1 ファイル変更2 行追加2 行削除
  1. 2 2
      core/variant/callable_bind.cpp

+ 2 - 2
core/variant/callable_bind.cpp

@@ -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 *a = static_cast<const CallableCustomBind *>(p_a);
 	const CallableCustomBind *b = static_cast<const CallableCustomBind *>(p_b);
 	const CallableCustomBind *b = static_cast<const CallableCustomBind *>(p_b);
 
 
-	if (!(a->callable != b->callable)) {
+	if (a->callable != b->callable) {
 		return false;
 		return false;
 	}
 	}
 
 
@@ -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 *a = static_cast<const CallableCustomUnbind *>(p_a);
 	const CallableCustomUnbind *b = static_cast<const CallableCustomUnbind *>(p_b);
 	const CallableCustomUnbind *b = static_cast<const CallableCustomUnbind *>(p_b);
 
 
-	if (!(a->callable != b->callable)) {
+	if (a->callable != b->callable) {
 		return false;
 		return false;
 	}
 	}