summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/3rdparty/squirrel/squirrel/sqapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqapi.cpp b/src/3rdparty/squirrel/squirrel/sqapi.cpp
index 82527f4a7..647d1b4ee 100644
--- a/src/3rdparty/squirrel/squirrel/sqapi.cpp
+++ b/src/3rdparty/squirrel/squirrel/sqapi.cpp
@@ -92,7 +92,7 @@ SQInteger sq_getvmstate(HSQUIRRELVM v)
bool sq_can_suspend(HSQUIRRELVM v)
{
- return v->_can_suspend;
+ return v->_nnativecalls <= 2;
}
void sq_seterrorhandler(HSQUIRRELVM v)