Skip to content

Commit

Permalink
fix in thread.call
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodemichelis committed May 2, 2022
1 parent f92bc29 commit a6413aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions squirrel/sqbaselib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ static SQInteger thread_call(HSQUIRRELVM v)
SQObjectPtr o = stack_get(v,1);
if(sq_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);
Expand Down

0 comments on commit a6413aa

Please sign in to comment.