Added a NULL check for activator in Warp().

This commit is contained in:
Blue-Shadow 2016-03-14 20:52:44 +03:00
parent d07bf08e56
commit a07f264782
1 changed files with 2 additions and 2 deletions

View File

@ -5946,8 +5946,8 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
reference = SingleActorFromTID(tid_dest, activator);
}
// If there is no actor to warp to, fail.
if (!reference)
// If there is no activator or actor to warp to, fail.
if (activator == NULL || !reference)
return false;
if (P_Thing_Warp(activator, reference, xofs, yofs, zofs, angle, flags, heightoffset, radiusoffset, pitch))