diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-26 17:42:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-26 17:42:12 +0000 |
commit | b32337e82052eb423a8fb552fb0509643221eed9 (patch) | |
tree | 52e3e2a4d228619809511bee5a51d01e63619d39 /src/modules.cpp | |
parent | 81dae4cc2317959fecc7cedb900784c8845f0de4 (diff) |
Yet another module priority shuffler fix from Phoenix, bad phoenix bad bad\!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9938 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 2 |
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]); |