From fc0bffc8aa066409c4538907fe96f389712e24ff Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 19 Dec 2012 22:46:36 +0300 Subject: Fix check in touch manager. --- src/touchmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp index 2bfe2c572..1662d6f00 100644 --- a/src/touchmanager.cpp +++ b/src/touchmanager.cpp @@ -252,7 +252,7 @@ bool TouchManager::processEvent(const MouseInput &mouseInput) bool TouchManager::isActionActive(const int index) const { - if (index < 0 || index > actionsSize) + if (index < 0 || index >= actionsSize) return false; return mActions[index]; } -- cgit v1.2.3-60-g2f50