SCI: Change kAnimate to actually tail recurse

svn-id: r44238
This commit is contained in:
Max Horn 2009-09-21 21:37:47 +00:00
parent 537c886aeb
commit 43da40996b

View File

@ -2992,8 +2992,7 @@ reg_t kAnimate(EngineState *s, int, int argc, reg_t *argv) {
// End of doit() recovery code
if (s->pic_is_new) { // Happens if DrawPic() is executed by a dynview (yes, that happens)
kAnimate(s, FAKE_FUNCT_NR, argc, argv); /* Tail-recurse */
return s->r_acc;
return kAnimate(s, FAKE_FUNCT_NR, argc, argv); /* Tail-recurse */
}
debugC(2, kDebugLevelGraphics, "Handling Dynviews (..step 9 inclusive):\n");