From 5d528fe31782e9ff1846d646c9ae663a6baa8429 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 12 Apr 2016 01:23:12 +0200 Subject: [PATCH] - fixed: PCD_ENDTRANSLATION was missing a NULL pointer check. --- src/p_acs.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index c880d87bf6..0877ad2c95 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -8900,10 +8900,11 @@ scriptwait: break; case PCD_ENDTRANSLATION: - // This might be useful for hardware rendering, but - // for software it is superfluous. - translation->UpdateNative(); - translation = NULL; + if (translation != NULL) + { + translation->UpdateNative(); + translation = NULL; + } break; case PCD_SIN: