Update sqbaselib.cpp

(cherry picked from commit 43a4b138a504c0464e6a7bb7b87ac2a90968b0aa)
pull/390/head
Blinnikov Pavel 2 years ago committed by Jonathan G Rennison
parent 8eb0609541
commit c8043f6e00

@ -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);

Loading…
Cancel
Save