fxp streaml

This commit is contained in:
Alexander 'z33ky' Hirsch 2025-07-01 09:40:57 +02:00
parent ca7bc5da57
commit 9c494b6eeb

View File

@ -1332,15 +1332,10 @@ SQInteger function_stub(HSQUIRRELVM vm)
{
SQInteger top = sq_gettop(vm);
SQUserPointer userptr = nullptr;
if (SQ_FAILED(sq_getuserpointer(vm, top, &userptr)))
{
return sq_throwerror(vm, "Expected userpointer");
}
ScriptFunctionBinding_t* pFunc = nullptr;
sq_getuserpointer(vm, top, (SQUserPointer*)&pFunc);
Assert(userptr);
ScriptFunctionBinding_t* pFunc = (ScriptFunctionBinding_t*)userptr;
Assert(pFunc);
int nargs = pFunc->m_desc.m_Parameters.Count();
int nLastHScriptIdx = -1;