From b32337e82052eb423a8fb552fb0509643221eed9 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 26 Jun 2008 17:42:12 +0000 Subject: 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 --- src/modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]); -- cgit v1.2.3