diff options
| author | 2010-08-03 15:07:58 -0400 | |
|---|---|---|
| committer | 2010-08-03 17:32:44 -0400 | |
| commit | 02bf9996ac32c6ce39f5b74965b526711a85c490 (patch) | |
| tree | ae3358bb13358601264cbe029178aa82be7b4abf /src/modules.cpp | |
| parent | Allow halfops to remove their own halfop status (diff) | |
Allow module init to be prioritized to allow dependency checking
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index cdce0db41..a476e283f 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -189,13 +189,13 @@ void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz) void ModuleManager::DetachAll(Module* mod) { - for (size_t n = I_BEGIN + 1; n != I_END; ++n) + for (size_t n = I_ModuleInit; n != I_END; ++n) Detach((Implementation)n, mod); } bool ModuleManager::SetPriority(Module* mod, Priority s) { - for (size_t n = I_BEGIN + 1; n != I_END; ++n) + for (size_t n = I_ModuleInit; n != I_END; ++n) SetPriority(mod, (Implementation)n, s); return true; |
