diff --git a/src/p_acs.cpp b/src/p_acs.cpp index a5cb22162..11b169e6a 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -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))