mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
Fixed code generation for vector parameters with default values
https://forum.zdoom.org/viewtopic.php?t=56915
This commit is contained in:
parent
478d72b37b
commit
eda55b25ee
1 changed files with 2 additions and 1 deletions
|
@ -2555,7 +2555,6 @@ void ZCCCompiler::CompileFunction(ZCC_StructWork *c, ZCC_FuncDeclarator *f, bool
|
|||
else
|
||||
{
|
||||
auto cnst = static_cast<FxConstant *>(x);
|
||||
hasdefault = true;
|
||||
switch (type->GetRegType())
|
||||
{
|
||||
case REGT_INT:
|
||||
|
@ -2583,6 +2582,8 @@ void ZCCCompiler::CompileFunction(ZCC_StructWork *c, ZCC_FuncDeclarator *f, bool
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
hasdefault = true;
|
||||
}
|
||||
if (x != nullptr) delete x;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue