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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user