1.1 --- a/core/concmd_cleaner.cpp Tue Oct 16 05:30:41 2007 +0000
1.2 +++ b/core/concmd_cleaner.cpp Tue Oct 16 05:58:45 2007 +0000
1.3 @@ -59,12 +59,12 @@
1.4 #if defined ORANGEBOX_BUILD
1.5 void OnSourceModAllInitialized()
1.6 {
1.7 - SH_ADD_HOOK(ICvar, UnregisterConCommand, SH_NOATTRIB, SH_MEMBER(this, &ConCommandCleaner::UnlinkConCommandBase), false);
1.8 + SH_ADD_HOOK_MEMFUNC(ICvar, UnregisterConCommand, icvar, this, &ConCommandCleaner::UnlinkConCommandBase, false);
1.9 }
1.10
1.11 void OnSourceModShutdown()
1.12 {
1.13 - SH_REMOVE_HOOK(ICvar, UnregisterConCommand, SH_NOATTRIB, SH_MEMBER(this, &ConCommandCleaner::UnlinkConCommandBase), false);
1.14 + SH_REMOVE_HOOK_MEMFUNC(ICvar, UnregisterConCommand, icvar, this, &ConCommandCleaner::UnlinkConCommandBase, false);
1.15 }
1.16 #endif
1.17