Update sqbaselib.cpp
(cherry picked from commit 43a4b138a504c0464e6a7bb7b87ac2a90968b0aa)
This commit is contained in:

committed by
Jonathan G Rennison

parent
8eb0609541
commit
c8043f6e00
1
src/3rdparty/squirrel/squirrel/sqbaselib.cpp
vendored
1
src/3rdparty/squirrel/squirrel/sqbaselib.cpp
vendored
@@ -816,6 +816,7 @@ static SQInteger thread_call(HSQUIRRELVM v)
|
||||
SQObjectPtr o = stack_get(v,1);
|
||||
if(type(o) == OT_THREAD) {
|
||||
SQInteger nparams = sq_gettop(v);
|
||||
sq_reservestack(_thread(o), nparams + 3);
|
||||
_thread(o)->Push(_thread(o)->_roottable);
|
||||
for(SQInteger i = 2; i<(nparams+1); i++)
|
||||
sq_move(_thread(o),v,i);
|
||||
|
Reference in New Issue
Block a user