- fixed: PCD_ENDTRANSLATION was missing a NULL pointer check.

This commit is contained in:
Christoph Oelckers 2016-04-12 01:23:12 +02:00
parent a97f67edb6
commit 5d528fe317

View file

@ -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: