aboutsummaryrefslogtreecommitdiff
path: root/engines/tony
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-11 19:22:41 +1000
committerPaul Gilbert2012-06-11 19:22:41 +1000
commitd20fb7480eaccb59b11e3a5ba02b1a2b60619aaf (patch)
treea2a69a4d5440083d3b7d5f5c3f9cfc3032e3e596 /engines/tony
parent5b5a812d3750cc1e8063ccfc8d1d9bf4db6a127b (diff)
downloadscummvm-rg350-d20fb7480eaccb59b11e3a5ba02b1a2b60619aaf.tar.gz
scummvm-rg350-d20fb7480eaccb59b11e3a5ba02b1a2b60619aaf.tar.bz2
scummvm-rg350-d20fb7480eaccb59b11e3a5ba02b1a2b60619aaf.zip
TONY: Fix crash in the Tunnel Of Love
Diffstat (limited to 'engines/tony')
-rw-r--r--engines/tony/custom.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/tony/custom.cpp b/engines/tony/custom.cpp
index 2e408a01aa..6627cd6c39 100644
--- a/engines/tony/custom.cpp
+++ b/engines/tony/custom.cpp
@@ -467,6 +467,11 @@ DECLARE_CUSTOM_FUNCTION(ClearScreen)(CORO_PARAM, uint32, uint32, uint32, uint32)
CORO_INVOKE_0(GLOBALS.WaitFrame);
+ // WORKAROUND: This fixes a bug in the original source where the linked clear task
+ // didn't have time to be drawn and removed from the draw list before the method
+ // ended, thus remaining in the draw list and causing a later crash
+ CORO_INVOKE_0(GLOBALS.WaitFrame);
+
CORO_END_CODE;
}