mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 01:54:19 +00:00
Fixed a crash
This commit is contained in:
parent
d7fe844690
commit
8f927a6033
|
@ -109,8 +109,10 @@ void CLaser::DoBounce()
|
|||
|
||||
if(m_Bounces > GameServer()->Tuning()->m_LaserBounceNum)
|
||||
m_Energy = -1;
|
||||
|
||||
if(OwnerChar)
|
||||
GameServer()->CreateSound(m_Pos, SOUND_RIFLE_BOUNCE, OwnerChar->Teams()->TeamMask(OwnerChar->Team()));
|
||||
else
|
||||
GameServer()->CreateSound(m_Pos, SOUND_RIFLE_BOUNCE, 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue