mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-07-27 15:41:50 +03:00
fxp streaml
This commit is contained in:
parent
ca7bc5da57
commit
9c494b6eeb
@ -1332,15 +1332,10 @@ SQInteger function_stub(HSQUIRRELVM vm)
|
|||||||
{
|
{
|
||||||
SQInteger top = sq_gettop(vm);
|
SQInteger top = sq_gettop(vm);
|
||||||
|
|
||||||
SQUserPointer userptr = nullptr;
|
ScriptFunctionBinding_t* pFunc = nullptr;
|
||||||
if (SQ_FAILED(sq_getuserpointer(vm, top, &userptr)))
|
sq_getuserpointer(vm, top, (SQUserPointer*)&pFunc);
|
||||||
{
|
|
||||||
return sq_throwerror(vm, "Expected userpointer");
|
|
||||||
}
|
|
||||||
|
|
||||||
Assert(userptr);
|
Assert(pFunc);
|
||||||
|
|
||||||
ScriptFunctionBinding_t* pFunc = (ScriptFunctionBinding_t*)userptr;
|
|
||||||
|
|
||||||
int nargs = pFunc->m_desc.m_Parameters.Count();
|
int nargs = pFunc->m_desc.m_Parameters.Count();
|
||||||
int nLastHScriptIdx = -1;
|
int nLastHScriptIdx = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user