From 35ba5b79d3f20560c5e00fe6151de10016f96c53 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 29 Oct 2012 00:42:58 +0000 Subject: [PATCH] - Added a NULL Defaults check to PClassActor::PropagateMark(). SVN r3921 (scripting) --- src/info.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/info.cpp b/src/info.cpp index 523855084d..244c9c68b2 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -303,7 +303,10 @@ size_t PClassActor::PropagateMark() } } // Mark damage function - GC::Mark(((AActor *)Defaults)->Damage); + if (Defaults != NULL) + { + GC::Mark(((AActor *)Defaults)->Damage); + } // marked += ActorInfo->NumOwnedStates * sizeof(FState); return Super::PropagateMark();