mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +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)
|
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
|
||||||
|
|
Loading…
Reference in a new issue