Skip to content

Commit 9ed3a2d

Browse files
authored
Fix CVoiceStatus::UpdateServerState not sending the full ban state from the client
1 parent 39f6dde commit 9ed3a2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game/shared/voice_status.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ void CVoiceStatus::UpdateServerState(bool bForce)
378378

379379
player_info_t pi;
380380

381-
if ( !engine->GetPlayerInfo( i+1, &pi ) )
381+
if ( !engine->GetPlayerInfo( playerIndex+1, &pi ) )
382382
continue;
383383

384384
if ( m_BanMgr.GetPlayerBan( pi.guid ) )
@@ -588,4 +588,4 @@ void CVoiceStatus::SetHeadLabelMaterial( const char *pszMaterial )
588588

589589
m_pHeadLabelMaterial = materials->FindMaterial( pszMaterial, TEXTURE_GROUP_VGUI );
590590
m_pHeadLabelMaterial->IncrementReferenceCount();
591-
}
591+
}

0 commit comments

Comments
 (0)