From 124f0fc7a3eca54500c78db64e190616bc9286b1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 5 Feb 2013 20:52:28 +0000 Subject: (svn r24970) -Fix [FS#5346]: crash when infinite loop occured during loading a script --- src/3rdparty/squirrel/squirrel/sqvm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/3rdparty') diff --git a/src/3rdparty/squirrel/squirrel/sqvm.cpp b/src/3rdparty/squirrel/squirrel/sqvm.cpp index dae5ff4a2..9041c7986 100644 --- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -1190,7 +1190,7 @@ bool SQVM::CallNative(SQNativeClosure *nclosure,SQInteger nargs,SQInteger stackb throw; } - assert(cstksize == _callsstacksize); + _callsstacksize = cstksize; _nnativecalls--; suspend = false; -- cgit v1.2.3-70-g09d2