diff options
author | rubidium <rubidium@openttd.org> | 2009-08-25 15:09:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-08-25 15:09:27 +0000 |
commit | 4ac4c28a3bcd1a56d10c832004d65773ff91bc2c (patch) | |
tree | 584fafe51274da5ad86bb1a43bc965e512db01bf /src/3rdparty/squirrel | |
parent | b9536e933f114bb233b99ee4226f51030db65a18 (diff) | |
download | openttd-4ac4c28a3bcd1a56d10c832004d65773ff91bc2c.tar.xz |
(svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion
Diffstat (limited to 'src/3rdparty/squirrel')
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqvm.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqvm.cpp b/src/3rdparty/squirrel/squirrel/sqvm.cpp index c3cdeae30..2c277d996 100644 --- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -774,9 +774,8 @@ common_call: _GUARD(gen->Yield(this)); Return(1, ct_target, clo); STK(ct_target) = gen; - CLEARSTACK(last_top); - continue; } + CLEARSTACK(last_top); } continue; case OT_NATIVECLOSURE: { |