From 6f3e7f7cb051be498df7b0b4a4959d30fc27dad3 Mon Sep 17 00:00:00 2001 From: sygi Date: Fri, 26 Mar 2021 17:39:05 +0000 Subject: Add mouse_shape_entered and mouse_shape_exited signals to CollisionObject2D. Co-authored-by: Hugo Locurcio --- core/templates/pair.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/templates/pair.h b/core/templates/pair.h index bc1a764694..658a65c826 100644 --- a/core/templates/pair.h +++ b/core/templates/pair.h @@ -60,7 +60,10 @@ bool operator!=(const Pair &pair, const Pair &other) { template struct PairSort { bool operator()(const Pair &A, const Pair &B) const { - return A.first < B.first; + if (A.first != B.first) { + return A.first < B.first; + } + return A.second < B.second; } }; -- cgit v1.2.3