summaryrefslogtreecommitdiff
path: root/src/3rdparty
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-02-05 20:52:28 +0000
committerrubidium <rubidium@openttd.org>2013-02-05 20:52:28 +0000
commit124f0fc7a3eca54500c78db64e190616bc9286b1 (patch)
tree83d57202f8587e89d6ba237cf33d0754b046eca4 /src/3rdparty
parent495b7fa1eb9a997181cef5ed6f026f9f97d15714 (diff)
downloadopenttd-124f0fc7a3eca54500c78db64e190616bc9286b1.tar.xz
(svn r24970) -Fix [FS#5346]: crash when infinite loop occured during loading a script
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/squirrel/squirrel/sqvm.cpp2
1 files changed, 1 insertions, 1 deletions
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;