Fix regression in SDKTools SetClientListening hook refcounting (bug 5956, r=fyren).

This commit is contained in:
Kyle Sanderson 2013-10-24 13:20:42 -04:00
parent 661af1c5e2
commit 35191745ca

View File

@ -68,7 +68,7 @@ SH_DECL_HOOK1_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, edict_t *)
bool DecHookCount()
{
if (g_VoiceHookCount == 0)
if (--g_VoiceHookCount == 0)
{
SH_REMOVE_HOOK(IVoiceServer, SetClientListening, voiceserver, SH_MEMBER(&g_SdkTools, &SDKTools::OnSetClientListening), false);
return true;