Fixed a crash

This commit is contained in:
GreYFoX 2011-07-22 14:44:57 +02:00
parent d7fe844690
commit 8f927a6033

View file

@ -109,8 +109,10 @@ void CLaser::DoBounce()
if(m_Bounces > GameServer()->Tuning()->m_LaserBounceNum) if(m_Bounces > GameServer()->Tuning()->m_LaserBounceNum)
m_Energy = -1; m_Energy = -1;
if(OwnerChar)
GameServer()->CreateSound(m_Pos, SOUND_RIFLE_BOUNCE, OwnerChar->Teams()->TeamMask(OwnerChar->Team())); GameServer()->CreateSound(m_Pos, SOUND_RIFLE_BOUNCE, OwnerChar->Teams()->TeamMask(OwnerChar->Team()));
else
GameServer()->CreateSound(m_Pos, SOUND_RIFLE_BOUNCE, 0);
} }
} }
else else