aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMax Horn2009-09-21 21:37:47 +0000
committerMax Horn2009-09-21 21:37:47 +0000
commit43da40996bb56c593622ffa12ff916083710ff2c (patch)
treebd93d4a4584e7deba2c6f16c8f38007724fc583a /engines/sci/engine
parent537c886aeba5412896afa423263dd301e42e9931 (diff)
downloadscummvm-rg350-43da40996bb56c593622ffa12ff916083710ff2c.tar.gz
scummvm-rg350-43da40996bb56c593622ffa12ff916083710ff2c.tar.bz2
scummvm-rg350-43da40996bb56c593622ffa12ff916083710ff2c.zip
SCI: Change kAnimate to actually tail recurse
svn-id: r44238
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index e483b3b9ad..363ce81910 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -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");