mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 01:49:10 +00:00
(svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion
This commit is contained in:
3
src/3rdparty/squirrel/squirrel/sqvm.cpp
vendored
3
src/3rdparty/squirrel/squirrel/sqvm.cpp
vendored
@@ -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: {
|
||||
|
Reference in New Issue
Block a user