diff --git a/game_shared/voice_status_hud.cpp b/game_shared/voice_status_hud.cpp index 97c1cd59..3972da24 100644 --- a/game_shared/voice_status_hud.cpp +++ b/game_shared/voice_status_hud.cpp @@ -385,7 +385,8 @@ void CVoiceStatusHud::UpdateSpeakerStatus( int entindex, bool bTalking ) // If we don't have a label for this guy yet, then create one. if ( !pLabel ) { - if ( pLabel = GetFreeVoiceLabel() ) + pLabel = GetFreeVoiceLabel(); + if ( pLabel ) { // Get the name from the engine. hud_player_info_t info; @@ -455,4 +456,4 @@ int CVoiceStatusHud::Draw( float flTime ) m_Labels[i]->Draw(); return 1; -} \ No newline at end of file +}