extensions/sdktools/extension.cpp
changeset 3819 d17aed3d46bf
parent 3816 31650bb3c7e8
child 3854 8abb0924497b
     1.1 --- a/extensions/sdktools/extension.cpp	Sat Mar 16 18:05:22 2013 -0400
     1.2 +++ b/extensions/sdktools/extension.cpp	Sat Mar 16 22:15:25 2013 -0400
     1.3 @@ -143,7 +143,7 @@
     1.4  #endif
     1.5  	CONVAR_REGISTER(this);
     1.6  
     1.7 -	SH_ADD_HOOK_MEMFUNC(IServerGameDLL, LevelInit, gamedll, this, &SDKTools::LevelInit, true);
     1.8 +	SH_ADD_HOOK(IServerGameDLL, LevelInit, gamedll, SH_MEMBER(this, &SDKTools::LevelInit), true);
     1.9  
    1.10  	playerhelpers->RegisterCommandTargetProcessor(this);
    1.11  
    1.12 @@ -210,7 +210,7 @@
    1.13  	playerhelpers->UnregisterCommandTargetProcessor(this);
    1.14  	plsys->RemovePluginsListener(&g_OutputManager);
    1.15  
    1.16 -	SH_REMOVE_HOOK_MEMFUNC(IServerGameDLL, LevelInit, gamedll, this, &SDKTools::LevelInit, true);
    1.17 +	SH_REMOVE_HOOK(IServerGameDLL, LevelInit, gamedll, SH_MEMBER(this, &SDKTools::LevelInit), true);
    1.18  
    1.19  	if (enginePatch)
    1.20  	{