From 68c8b82fdcb41b8ad5abde9fe1f0654254217b8e Mon Sep 17 00:00:00 2001 From: FlaminSarge Date: Tue, 20 May 2025 06:17:35 -0700 Subject: [PATCH] Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client --- src/game/shared/voice_status.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/shared/voice_status.cpp b/src/game/shared/voice_status.cpp index 0272c5540..b42b96a49 100644 --- a/src/game/shared/voice_status.cpp +++ b/src/game/shared/voice_status.cpp @@ -378,7 +378,7 @@ void CVoiceStatus::UpdateServerState(bool bForce) player_info_t pi; - if ( !engine->GetPlayerInfo( i+1, &pi ) ) + if ( !engine->GetPlayerInfo( playerIndex+1, &pi ) ) continue; if ( m_BanMgr.GetPlayerBan( pi.guid ) ) @@ -588,4 +588,4 @@ void CVoiceStatus::SetHeadLabelMaterial( const char *pszMaterial ) m_pHeadLabelMaterial = materials->FindMaterial( pszMaterial, TEXTURE_GROUP_VGUI ); m_pHeadLabelMaterial->IncrementReferenceCount(); -} \ No newline at end of file +}