Fix regression in SDKTools SetClientListening hook refcounting (bug 5956, r=fyren).
This commit is contained in:
		
							parent
							
								
									661af1c5e2
								
							
						
					
					
						commit
						35191745ca
					
				@ -68,7 +68,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(IVoiceServer, SetClientListening, voiceserver, SH_MEMBER(&g_SdkTools, &SDKTools::OnSetClientListening), false);
 | 
							SH_REMOVE_HOOK(IVoiceServer, SetClientListening, voiceserver, SH_MEMBER(&g_SdkTools, &SDKTools::OnSetClientListening), false);
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user