summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 57790cd1b..0867390fd 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -341,7 +341,7 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, PriorityState s,
for (unsigned int j = source; j != swap_pos; j += incrmnt)
{
- if (( j + incrmnt > EventHandlers[i].size() - 1) || (j - incrmnt < 0))
+ if (( j + incrmnt > EventHandlers[i].size() - 1) || (j + incrmnt < 0))
continue;
std::swap(EventHandlers[i][j], EventHandlers[i][j+incrmnt]);