aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2008-12-13 02:51:36 +0000
committerSven Hesse2008-12-13 02:51:36 +0000
commit1cc08d8b6a3ee995ff130bf96d6e9217b41b856d (patch)
tree89203aedc55419592170442c0e53c77ccfbea06e
parent60417c646e286cae3715577871d2b59c43acff26 (diff)
downloadscummvm-rg350-1cc08d8b6a3ee995ff130bf96d6e9217b41b856d.tar.gz
scummvm-rg350-1cc08d8b6a3ee995ff130bf96d6e9217b41b856d.tar.bz2
scummvm-rg350-1cc08d8b6a3ee995ff130bf96d6e9217b41b856d.zip
Fixing forgetfulness-bug which leads to failed assertions in certain cases
svn-id: r35322
-rw-r--r--engines/gob/coktelvideo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp
index 074422f35e..377cb8a3a5 100644
--- a/engines/gob/coktelvideo.cpp
+++ b/engines/gob/coktelvideo.cpp
@@ -1280,6 +1280,10 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) {
_soundStage = 0;
}
+ // If these are still 0x7FFF, no video data has been processed
+ if ((state.left == 0x7FFF) || (state.top == 0x7FFF))
+ state.left = state.top = state.right = state.bottom = 0;
+
_lastFrameTime = g_system->getMillis();
return state;
}