Fix regression in SDKTools SetClientListening hook refcounting (bug 5956, r=fyren).
This commit is contained in:
parent
81f0d82c67
commit
0160d3cc71
@ -66,7 +66,7 @@ SH_DECL_HOOK1_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, edict_t *)
|
|||||||
|
|
||||||
bool DecHookCount()
|
bool DecHookCount()
|
||||||
{
|
{
|
||||||
if (g_VoiceHookCount == 0)
|
if (--g_VoiceHookCount == 0)
|
||||||
{
|
{
|
||||||
SH_REMOVE_HOOK_MEMFUNC(IVoiceServer, SetClientListening, voiceserver, &g_SdkTools, &SDKTools::OnSetClientListening, false);
|
SH_REMOVE_HOOK_MEMFUNC(IVoiceServer, SetClientListening, voiceserver, &g_SdkTools, &SDKTools::OnSetClientListening, false);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user