summaryrefslogtreecommitdiff
path: root/src/3rdparty
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-08-25 15:09:27 +0000
committerrubidium <rubidium@openttd.org>2009-08-25 15:09:27 +0000
commit4ac4c28a3bcd1a56d10c832004d65773ff91bc2c (patch)
tree584fafe51274da5ad86bb1a43bc965e512db01bf /src/3rdparty
parentb9536e933f114bb233b99ee4226f51030db65a18 (diff)
downloadopenttd-4ac4c28a3bcd1a56d10c832004d65773ff91bc2c.tar.xz
(svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/squirrel/squirrel/sqvm.cpp3
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: {