Skip to content

Commit

Permalink
Don't crash when deserializing an effect with object command target (…
Browse files Browse the repository at this point in the history
…#1730)
  • Loading branch information
Günther Brammer committed Apr 28, 2016
1 parent 4092911 commit 904bf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/C4Effect.cpp
Expand Up @@ -529,7 +529,7 @@ void C4Effect::CompileFunc(StdCompiler *pComp, C4ValueNumbers * numbers)
// read ID // read ID
if (pComp->isDecompiler()) if (pComp->isDecompiler())
{ {
const C4PropListStatic * p = CommandTarget.getPropList()->IsStatic(); const C4PropListStatic * p = CommandTarget.getPropList() ? CommandTarget._getPropList()->IsStatic() : NULL;
if (p) if (p)
p->RefCompileFunc(pComp, numbers); p->RefCompileFunc(pComp, numbers);
else else
Expand Down

0 comments on commit 904bf78

Please sign in to comment.