mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
Fixed: FxVMFunctionCall didn't check for varargs while checking argument count
This commit is contained in:
parent
e5878f0cb2
commit
594a0c2008
1 changed files with 1 additions and 1 deletions
|
@ -5785,7 +5785,7 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx)
|
||||||
{
|
{
|
||||||
bool foundvarargs = false;
|
bool foundvarargs = false;
|
||||||
PType * type = nullptr;
|
PType * type = nullptr;
|
||||||
if (ArgList->Size() + implicit > proto->ArgumentTypes.Size())
|
if (argtypes.Last() != nullptr && ArgList->Size() + implicit > argtypes.Size())
|
||||||
{
|
{
|
||||||
ScriptPosition.Message(MSG_ERROR, "Too many arguments in call to %s", Function->SymbolName.GetChars());
|
ScriptPosition.Message(MSG_ERROR, "Too many arguments in call to %s", Function->SymbolName.GetChars());
|
||||||
delete this;
|
delete this;
|
||||||
|
|
Loading…
Reference in a new issue