Skip to content

Commit

Permalink
fix? crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Elinsrc committed Jan 29, 2025
1 parent 4129a98 commit 97ba3a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cl_dll/ui/novgui_voice_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ bool CVoiceStatus::IsPlayerAudible(int iPlayer)

bool CVoiceStatus::IsPlayerSpeaking(int iPlayerIndex)
{
assert(iPlayerIndex >= 1 && iPlayerIndex <= MAX_PLAYERS);
if (iPlayerIndex < 1 || iPlayerIndex > MAX_PLAYERS)
return false;

return m_VoicePlayers[iPlayerIndex - 1];
}

Expand Down

0 comments on commit 97ba3a9

Please sign in to comment.