summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2016-10-23 05:47:36 +0900
committervolzhs <volzhs@gmail.com>2016-10-23 05:47:36 +0900
commitb76a0ca40c02a29692ca124dd1d28a3cecc6c3fb (patch)
treefb9f45b25d3d8a1dd35144f4f8f073ca82e07b6c /core
parent24337f9c5ef8668153b2611fd98fd7a3de5119c5 (diff)
Fix comparison bug with InputEvent
Diffstat (limited to 'core')
-rw-r--r--core/os/input_event.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/os/input_event.cpp b/core/os/input_event.cpp
index 9982767be1..7350be824a 100644
--- a/core/os/input_event.cpp
+++ b/core/os/input_event.cpp
@@ -50,7 +50,8 @@ bool InputEvent::operator==(const InputEvent &p_event) const {
case MOUSE_MOTION:
return mouse_motion.x == p_event.mouse_motion.x
&& mouse_motion.y == p_event.mouse_motion.y
- && mouse_motion.relative_x == p_event.mouse_motion.relative_y
+ && mouse_motion.relative_x == p_event.mouse_motion.relative_x
+ && mouse_motion.relative_y == p_event.mouse_motion.relative_y
&& mouse_motion.button_mask == p_event.mouse_motion.button_mask
&& key.mod == p_event.key.mod;
case MOUSE_BUTTON: