mirror of https://github.com/OpenTTD/OpenTTD
(svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion
parent
b9536e933f
commit
4ac4c28a3b
|
@ -774,9 +774,8 @@ common_call:
|
||||||
_GUARD(gen->Yield(this));
|
_GUARD(gen->Yield(this));
|
||||||
Return(1, ct_target, clo);
|
Return(1, ct_target, clo);
|
||||||
STK(ct_target) = gen;
|
STK(ct_target) = gen;
|
||||||
CLEARSTACK(last_top);
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
CLEARSTACK(last_top);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
case OT_NATIVECLOSURE: {
|
case OT_NATIVECLOSURE: {
|
||||||
|
|
Loading…
Reference in New Issue