Ver código fonte

fix in thread.call

Alberto Demichelis 3 anos atrás
pai
commit
a6413aa690
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      squirrel/sqbaselib.cpp

+ 1 - 0
squirrel/sqbaselib.cpp

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