From 6aecb29995914acb5c2768ebaaba10b465be82bc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 2 Nov 2016 16:05:57 +0100 Subject: [PATCH] - fixed: The VM function builder was set up with the wrong number of implicit arguments. --- src/scripting/vm/vmbuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vm/vmbuilder.cpp b/src/scripting/vm/vmbuilder.cpp index d2d9e7140f..41ec4b920b 100644 --- a/src/scripting/vm/vmbuilder.cpp +++ b/src/scripting/vm/vmbuilder.cpp @@ -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;iVariants[0].Proto->ArgumentTypes.Size();i++) { auto type = item.Func->Variants[0].Proto->ArgumentTypes[i];