mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 17:50:06 +02:00
13 lines
520 B
Diff
13 lines
520 B
Diff
diff --git a/squirrel/sqbaselib.cpp b/squirrel/sqbaselib.cpp
|
|
index e2f248e..308d2cc 100644
|
|
--- a/squirrel/sqbaselib.cpp
|
|
+++ b/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);
|