- fixed: The VM function builder was set up with the wrong number of implicit arguments.

This commit is contained in:
Christoph Oelckers 2016-11-02 16:05:57 +01:00
parent ff66dc3189
commit 6aecb29995

View file

@ -701,7 +701,7 @@ void FFunctionBuildList::Build()
FCompileContext ctx(item.Func, item.Func->SymbolName == NAME_None ? nullptr : item.Func->Variants[0].Proto, item.FromDecorate);
// Allocate registers for the function's arguments and create local variable nodes before starting to resolve it.
VMFunctionBuilder buildit(!!(item.Func->Variants[0].Flags & VARF_Action));
VMFunctionBuilder buildit(item.Func->GetImplicitArgs());
for(unsigned i=0;i<item.Func->Variants[0].Proto->ArgumentTypes.Size();i++)
{
auto type = item.Func->Variants[0].Proto->ArgumentTypes[i];