mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
Fixed crash on attempt to get string value of null
https://mantis.zdoom.org/view.php?id=231
This commit is contained in:
parent
98de1fcfcb
commit
d2affc7c0c
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ static FString GetStringConst(FxExpression *ex, FCompileContext &ctx)
|
||||||
{
|
{
|
||||||
ex = new FxStringCast(ex);
|
ex = new FxStringCast(ex);
|
||||||
ex = ex->Resolve(ctx);
|
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)
|
int ZCCCompiler::IntConstFromNode(ZCC_TreeNode *node, PStruct *cls)
|
||||||
|
|
Loading…
Reference in a new issue