From 451cac457bab13a72e37972e320ca580f6ddf15a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 26 Feb 2016 18:05:58 +0100 Subject: [PATCH] - added NULL pointer check in AActor::ClearInterpolation. --- src/r_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/r_defs.h b/src/r_defs.h index 18eba3b7b..6ad406eca 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -1289,7 +1289,8 @@ inline void AActor::ClearInterpolation() PrevY = Y(); PrevZ = Z(); PrevAngle = angle; - PrevPortalGroup = Sector->PortalGroup; + if (Sector) PrevPortalGroup = Sector->PortalGroup; + else PrevPortalGroup = 0; }