mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-26 05:51:00 +00:00
Fix crash in Shadow Warrior when player dies
This commit is contained in:
parent
5fd4fbfde5
commit
e28088380f
1 changed files with 2 additions and 1 deletions
|
@ -537,7 +537,8 @@ void SWSoundEngine::CalcPosVel(int type, const void* source, const float pt[3],
|
|||
{
|
||||
auto act = ((PLAYER*)source)->actor;
|
||||
if (act) vPos = act->getPosWithOffsetZ();
|
||||
else vPos = pp->actor->getPosWithOffsetZ();
|
||||
else if (pp->actor)
|
||||
vPos = pp->actor->getPosWithOffsetZ();
|
||||
}
|
||||
pancheck = true;
|
||||
FVector3 npos = GetSoundPos(vPos);
|
||||
|
|
Loading…
Reference in a new issue