Don't crash when deserializing an effect with object command target (#1730)

liquid_container
Günther Brammer 2016-04-29 00:16:20 +02:00
parent 4092911349
commit 904bf78d68
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ void C4Effect::CompileFunc(StdCompiler *pComp, C4ValueNumbers * numbers)
// read ID
if (pComp->isDecompiler())
{
const C4PropListStatic * p = CommandTarget.getPropList()->IsStatic();
const C4PropListStatic * p = CommandTarget.getPropList() ? CommandTarget._getPropList()->IsStatic() : NULL;
if (p)
p->RefCompileFunc(pComp, numbers);
else