mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- fixed calling a function on string CVar
https://forum.zdoom.org/viewtopic.php?t=66768
This commit is contained in:
parent
5a19010699
commit
a05a5a8f00
1 changed files with 1 additions and 1 deletions
|
@ -6829,7 +6829,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