forked from Mirrors/openclonk
Don't crash when deserializing an effect with object command target (#1730)
parent
4092911349
commit
904bf78d68
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue