summaryrefslogtreecommitdiff
path: root/modules/core/gl_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/gl_main.cpp')
-rw-r--r--modules/core/gl_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/gl_main.cpp b/modules/core/gl_main.cpp
index e7fdc95f8..c7ccf9209 100644
--- a/modules/core/gl_main.cpp
+++ b/modules/core/gl_main.cpp
@@ -60,7 +60,7 @@ class GlobalCore : public Module
ModuleManager::RegisterService(&this->myglobalservice);
Implementation i[] = { I_OnRestart, I_OnShutdown, I_OnNewServer, I_OnPreHelp };
- ModuleManager::Attach(i, this, 3);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
void OnRestart()