summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-06-11 18:59:06 +0200
committerSir Poggles <sir.pogsalot@gmail.com>2012-06-12 22:49:29 -0700
commitd68981362628e6c67edcac2b5ea65d4ca18bed7b (patch)
tree58d1f15ce334b17afb49a919ffa1b6f6badb2b46 /src/modules.cpp
parentacb0d25d2b1f92f888a43ae96d98220a7d77e9b2 (diff)
Fix 2 clang warnings reported by @SaberUK
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 5f1081a1c..ccd78a8f0 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -313,7 +313,7 @@ swap_now:
for (unsigned int j = my_pos; j != swap_pos; j += incrmnt)
{
- if (( j + incrmnt > EventHandlers[i].size() - 1) || (j + incrmnt < 0))
+ if ((j + incrmnt > EventHandlers[i].size() - 1) || ((incrmnt == -1) && (j == 0)))
continue;
std::swap(EventHandlers[i][j], EventHandlers[i][j+incrmnt]);