mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +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;
|
auto act = ((PLAYER*)source)->actor;
|
||||||
if (act) vPos = act->getPosWithOffsetZ();
|
if (act) vPos = act->getPosWithOffsetZ();
|
||||||
else vPos = pp->actor->getPosWithOffsetZ();
|
else if (pp->actor)
|
||||||
|
vPos = pp->actor->getPosWithOffsetZ();
|
||||||
}
|
}
|
||||||
pancheck = true;
|
pancheck = true;
|
||||||
FVector3 npos = GetSoundPos(vPos);
|
FVector3 npos = GetSoundPos(vPos);
|
||||||
|
|
Loading…
Reference in a new issue