From 63a4201d15b041edf0dc029b46684a2ec01ff75b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 31 Jul 2011 06:24:24 -0400 Subject: Fixed these ModuleManager::Attach calls once and for all.. --- modules/core/gl_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/core/gl_main.cpp') 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() -- cgit