mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
- fixed calling a function on string CVar
https://forum.zdoom.org/viewtopic.php?t=66768
This commit is contained in:
parent
f42f20ccd3
commit
a09d8e40f1
1 changed files with 1 additions and 1 deletions
|
@ -6831,7 +6831,7 @@ FxExpression *FxCVar::Resolve(FCompileContext &ctx)
|
|||
|
||||
ExpEmit FxCVar::Emit(VMFunctionBuilder *build)
|
||||
{
|
||||
ExpEmit dest(build, ValueType->GetRegType());
|
||||
ExpEmit dest(build, CVar->GetRealType() == CVAR_String ? REGT_STRING : ValueType->GetRegType());
|
||||
ExpEmit addr(build, REGT_POINTER);
|
||||
int nul = build->GetConstantInt(0);
|
||||
switch (CVar->GetRealType())
|
||||
|
|
Loading…
Reference in a new issue