Skip to content
Permalink
Browse files

Don't crash when deserializing an effect with object command target (…

…#1730)
  • Loading branch information...
Günther Brammer
Günther Brammer committed Apr 28, 2016
1 parent 4092911 commit 904bf78d685299ec9cb7c59a4c597d96ddceb312
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/script/C4Effect.cpp
@@ -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

0 comments on commit 904bf78

Please sign in to comment.
You can’t perform that action at this time.