mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-05-31 09:21:36 +00:00
- ZScript used the wrong variable for compatflags2.
ii_* is merely the storage for info from the compatibility.txt lump.
(cherry picked from commit ae1fe041ee
)
This commit is contained in:
parent
c5b20b91ff
commit
ed5c2b21ac
1 changed files with 1 additions and 1 deletions
|
@ -6868,7 +6868,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…
Add table
Add a link
Reference in a new issue