Fix crash.

This commit is contained in:
Night Owl 2018-06-25 22:18:21 +05:00
parent 3342d95993
commit 08557f5769
1 changed files with 1 additions and 3 deletions

View File

@ -134,9 +134,7 @@ void CEinarHand::SetYawSpeed()
//=========================================================
void CEinarHand::AttackSound()
{
int iSound = RANDOM_LONG( 0, 2 );
if( iSound != 0 )
EMIT_SOUND_DYN( edict(), CHAN_VOICE, pAttackSounds[iSound], GetSoundVolue(), ATTN_IDLE, 0, GetVoicePitch() );
EMIT_SOUND_DYN( edict(), CHAN_VOICE, RANDOM_SOUND_ARRAY( pAttackSounds ), GetSoundVolue(), ATTN_IDLE, 0, GetVoicePitch() );
}
//=========================================================