Mercurial > hg > openttd
changeset 11851:78901cd3230f draft
(svn r16241) -Fix (r16181): regression failing due to wrongly initialised amount of traps
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 06 May 2009 13:42:31 +0000 |
parents | c522c537333f |
children | 862dd1024fe7 |
files | src/3rdparty/squirrel/squirrel/sqvm.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -83,7 +83,7 @@ _suspended = SQFalse; _suspended_target=-1; _suspended_root = SQFalse; - _suspended_traps=-1; + _suspended_traps=0; _foreignptr=NULL; _nnativecalls=0; _lasterror = _null_; @@ -699,7 +699,7 @@ 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);