- fixed: The compile context for constant evaluation did not initialize its Version member.
This commit is contained in:
parent
f7f9746a0f
commit
5cee2b5803
7 changed files with 19 additions and 19 deletions
|
|
@ -242,7 +242,7 @@ void ZCCDoomCompiler::DispatchProperty(FPropertyInfo *prop, ZCC_PropertyStmt *pr
|
|||
const char * p = prop->params;
|
||||
auto exp = property->Values;
|
||||
|
||||
FCompileContext ctx(OutNamespace, bag.Info->VMType, false);
|
||||
FCompileContext ctx(OutNamespace, bag.Info->VMType, false, mVersion);
|
||||
while (true)
|
||||
{
|
||||
FPropParam conv;
|
||||
|
|
@ -425,7 +425,7 @@ void ZCCDoomCompiler::DispatchScriptProperty(PProperty *prop, ZCC_PropertyStmt *
|
|||
}
|
||||
|
||||
auto exp = property->Values;
|
||||
FCompileContext ctx(OutNamespace, bag.Info->VMType, false);
|
||||
FCompileContext ctx(OutNamespace, bag.Info->VMType, false, mVersion);
|
||||
for (auto f : prop->Variables)
|
||||
{
|
||||
void *addr;
|
||||
|
|
@ -907,7 +907,7 @@ void ZCCDoomCompiler::CompileStates()
|
|||
{
|
||||
state.sprite = GetSpriteIndex(sl->Sprite->GetChars());
|
||||
}
|
||||
FCompileContext ctx(OutNamespace, c->Type(), false);
|
||||
FCompileContext ctx(OutNamespace, c->Type(), false, mVersion);
|
||||
if (CheckRandom(sl->Duration))
|
||||
{
|
||||
auto func = static_cast<ZCC_ExprFuncCall *>(sl->Duration);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue