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 81f0d82c67
commit 0160d3cc71

View File

@ -66,7 +66,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_MEMFUNC(IVoiceServer, SetClientListening, voiceserver, &g_SdkTools, &SDKTools::OnSetClientListening, false);
return true;