mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
- ZScript used the wrong variable for compatflags2.
ii_* is merely the storage for info from the compatibility.txt lump.
This commit is contained in:
parent
4a1f36623b
commit
ae1fe041ee
1 changed files with 1 additions and 1 deletions
|
@ -6860,7 +6860,7 @@ ExpEmit FxCVar::Emit(VMFunctionBuilder *build)
|
|||
auto cv = static_cast<FFlagCVar *>(CVar);
|
||||
auto vcv = &cv->ValueVar;
|
||||
if (vcv == &compatflags) pVal = &i_compatflags;
|
||||
else if (vcv == &compatflags2) pVal = &ii_compatflags2;
|
||||
else if (vcv == &compatflags2) pVal = &i_compatflags2;
|
||||
else pVal = &vcv->Value;
|
||||
build->Emit(OP_LKP, addr.RegNum, build->GetConstantAddress(pVal));
|
||||
build->Emit(OP_LW, dest.RegNum, addr.RegNum, nul);
|
||||
|
|
Loading…
Reference in a new issue