- scriptified Heretic's wizard.

This commit is contained in:
Christoph Oelckers 2016-11-11 23:32:13 +01:00
parent a5f9eb5be1
commit 14a9c13113
7 changed files with 135 additions and 102 deletions

View file

@ -6680,7 +6680,19 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx)
return nullptr;
}
}
}
else
{
if ((unsigned)implicit < argtypes.Size() && argtypes[implicit] != nullptr)
{
auto flags = Function->Variants[0].ArgFlags[implicit];
if (!(flags & VARF_Optional))
{
ScriptPosition.Message(MSG_ERROR, "Insufficient arguments in call to %s", Function->SymbolName.GetChars());
delete this;
return nullptr;
}
}
}
if (failed)
{