summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/touchmanager.cpp2
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];
}