|
@@ -1149,6 +1149,7 @@ static SQInteger thread_call(HSQUIRRELVM v)
|
|
|
SQObjectPtr o = stack_get(v,1);
|
|
SQObjectPtr o = stack_get(v,1);
|
|
|
if(sq_type(o) == OT_THREAD) {
|
|
if(sq_type(o) == OT_THREAD) {
|
|
|
SQInteger nparams = sq_gettop(v);
|
|
SQInteger nparams = sq_gettop(v);
|
|
|
|
|
+ sq_reservestack(_thread(o), nparams + 3);
|
|
|
_thread(o)->Push(_thread(o)->_roottable);
|
|
_thread(o)->Push(_thread(o)->_roottable);
|
|
|
for(SQInteger i = 2; i<(nparams+1); i++)
|
|
for(SQInteger i = 2; i<(nparams+1); i++)
|
|
|
sq_move(_thread(o),v,i);
|
|
sq_move(_thread(o),v,i);
|