diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-19 22:46:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-19 22:46:36 +0300 |
commit | fc0bffc8aa066409c4538907fe96f389712e24ff (patch) | |
tree | edc33f5dfb0dcac68fdbb6b0d1da5c67eae3c098 | |
parent | f42f520d5f1b974110677efad256e3dc7ec41c29 (diff) | |
download | mv-fc0bffc8aa066409c4538907fe96f389712e24ff.tar.gz mv-fc0bffc8aa066409c4538907fe96f389712e24ff.tar.bz2 mv-fc0bffc8aa066409c4538907fe96f389712e24ff.tar.xz mv-fc0bffc8aa066409c4538907fe96f389712e24ff.zip |
Fix check in touch manager.
-rw-r--r-- | src/touchmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |