- create ScriptCall function pointer on VMScriptFunction

This commit is contained in:
Magnus Norddahl 2018-10-09 02:52:07 +02:00
commit e930dfaae7
5 changed files with 53 additions and 27 deletions

View file

@ -417,7 +417,8 @@ int JitCompiler::DoCall(VMFrameStack *stack, VMFunction *call, int b, int c, VMV
else
{
VMCalls[0]++;
numret = VMExec(static_cast<VMScriptFunction *>(call), param, b, returns, c);
auto sfunc = static_cast<VMScriptFunction *>(call);
numret = sfunc->ScriptCall(sfunc, param, b, returns, c);
}
return numret;