Fixed crash when parsing DECORATE constant expressions

This commit is contained in:
alexey.lysiuk 2017-04-13 12:06:59 +03:00
parent cbf2a21c83
commit fbc1028d2b

View file

@ -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);
}