1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 05:16:38 +02:00

Fix OSX buld and a warning in modulemanager.cpp

This commit is contained in:
Adam
2013-04-12 17:19:29 -04:00
parent 9a45626379
commit b405484fb9
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ bool ModuleManager::SetPriority(Module *mod, Implementation i, Priority s, Modul
for (unsigned 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 == -1))
continue;
std::swap(EventHandlers[i][j], EventHandlers[i][j + incrmnt]);