diff --git a/src/3rdparty/squirrel/squirrel/sqapi.cpp b/src/3rdparty/squirrel/squirrel/sqapi.cpp index 82527f4a7e..647d1b4ee3 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)