mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Added a NULL check for activator in Warp().
This commit is contained in:
parent
d07bf08e56
commit
a07f264782
1 changed files with 2 additions and 2 deletions
|
@ -5946,8 +5946,8 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
|
||||||
reference = SingleActorFromTID(tid_dest, activator);
|
reference = SingleActorFromTID(tid_dest, activator);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there is no actor to warp to, fail.
|
// If there is no activator or actor to warp to, fail.
|
||||||
if (!reference)
|
if (activator == NULL || !reference)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (P_Thing_Warp(activator, reference, xofs, yofs, zofs, angle, flags, heightoffset, radiusoffset, pitch))
|
if (P_Thing_Warp(activator, reference, xofs, yofs, zofs, angle, flags, heightoffset, radiusoffset, pitch))
|
||||||
|
|
Loading…
Reference in a new issue