diff options
author | rubidium <rubidium@openttd.org> | 2009-05-06 13:42:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-06 13:42:31 +0000 |
commit | bb121a1510fbd3faea71b794b1f6bdaba1641665 (patch) | |
tree | b5171e46a9388e5ac4f35274453357902ab40784 /src/3rdparty | |
parent | ff7f2bdb20794855ea398854a92e2ee40aeba879 (diff) | |
download | openttd-bb121a1510fbd3faea71b794b1f6bdaba1641665.tar.xz |
(svn r16241) -Fix (r16181): regression failing due to wrongly initialised amount of traps
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqvm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqvm.cpp b/src/3rdparty/squirrel/squirrel/sqvm.cpp index 169bd6d4d..0cb66e9c1 100644 --- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -83,7 +83,7 @@ SQVM::SQVM(SQSharedState *ss) _suspended = SQFalse; _suspended_target=-1; _suspended_root = SQFalse; - _suspended_traps=-1; + _suspended_traps=0; _foreignptr=NULL; _nnativecalls=0; _lasterror = _null_; @@ -699,7 +699,7 @@ exception_restore: for(;;) { DecreaseOps(1); - if (ShouldSuspend()) { _suspended = SQTrue; return true; } + if (ShouldSuspend()) { _suspended = SQTrue; _suspended_traps = traps; return true; } const SQInstruction &_i_ = *ci->_ip++; //dumpstack(_stackbase); |