blob: 0a605616d6067bddf5dee8f653bd1e2b45cfd6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
From a6413aa690e0bdfef648c68693349a7b878fe60d Mon Sep 17 00:00:00 2001
From: Alberto Demichelis <albertodemichelis@hotmail.com>
Date: Mon, 2 May 2022 12:04:58 +0200
Subject: [PATCH] fix in thread.call
---
squirrel/sqbaselib.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/external/squirrel/squirrel/sqbaselib.cpp b/external/squirrel/squirrel/sqbaselib.cpp
index 8eff97c..5055f18 100644
--- a/external/squirrel/squirrel/sqbaselib.cpp
+++ b/external/squirrel/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);
|