Skip to content

Commit 2b0843a

Browse files
committed
Correct hook function name for pre-orangebox games
1 parent 11ad1e1 commit 2b0843a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/GameHooks.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
#include "command_args.h"
3131
#include "provider.h"
3232

33+
#if SOURCE_ENGINE >= SE_ORANGEBOX
3334
KHook::Virtual CallGlobalChangeCallback_Hook(&ICvar::CallGlobalChangeCallbacks, &GameHooks::OnConVarChanged, nullptr);
35+
#else
36+
KHook::Virtual CallGlobalChangeCallback_Hook(&ICvar::CallGlobalChangeCallback, &GameHooks::OnConVarChanged, nullptr);
37+
#endif
3438

3539
GameHooks::GameHooks()
3640
:

0 commit comments

Comments
 (0)