From d7683a8c552fc38720967dedb4a89b0f0908c06f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 2 Oct 2016 10:13:45 +0300 Subject: [PATCH] Fixed crash on early fatal error exit Process terminates correctly if zdoom.pk3 is missing --- src/dobject.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dobject.cpp b/src/dobject.cpp index 8fba75aa6..4acb86ce4 100644 --- a/src/dobject.cpp +++ b/src/dobject.cpp @@ -330,7 +330,11 @@ DObject::~DObject () } } } - type->DestroySpecials(this); + + if (nullptr != type) + { + type->DestroySpecials(this); + } } }