mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Fixed crash when parsing DECORATE constant expressions
This commit is contained in:
parent
cbf2a21c83
commit
fbc1028d2b
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ FxExpression *ParseExpression (FScanner &sc, PClassActor *cls, PNamespace *spc)
|
|||
|
||||
if (spc)
|
||||
{
|
||||
FCompileContext ctx(spc, cls->VMType, true);
|
||||
PClassType *vmtype = nullptr == cls ? nullptr : cls->VMType;
|
||||
FCompileContext ctx(spc, vmtype, true);
|
||||
data = data->Resolve(ctx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue