Merge remote-tracking branch 'remotes/origin/master'

This commit is contained in:
Christoph Oelckers 2017-02-12 21:57:46 +01:00
commit 7d96f85fe8
3 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ static FString GetStringConst(FxExpression *ex, FCompileContext &ctx)
{
ex = new FxStringCast(ex);
ex = ex->Resolve(ctx);
return static_cast<FxConstant*>(ex)->GetValue().GetString();
return ex ? static_cast<FxConstant*>(ex)->GetValue().GetString() : FString();
}
int ZCCCompiler::IntConstFromNode(ZCC_TreeNode *node, PStruct *cls)