aboutsummaryrefslogtreecommitdiff
path: root/script.cpp
diff options
context:
space:
mode:
authorJames Brown2002-04-05 17:18:57 +0000
committerJames Brown2002-04-05 17:18:57 +0000
commit933df055c95452aeddc82fd9119838b0b45e1f88 (patch)
tree852c3f46ab4e147bfb018d8b4b6243ddc7b0f31b /script.cpp
parentd31eba858b5c5f7c9a8634763e48bcaccc6bf1fe (diff)
downloadscummvm-rg350-933df055c95452aeddc82fd9119838b0b45e1f88.tar.gz
scummvm-rg350-933df055c95452aeddc82fd9119838b0b45e1f88.tar.bz2
scummvm-rg350-933df055c95452aeddc82fd9119838b0b45e1f88.zip
One FIXME for cutscene code... there's still something subtracting 1 from a null cutscene..
svn-id: r3878
Diffstat (limited to 'script.cpp')
-rw-r--r--script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/script.cpp b/script.cpp
index f5c56cc7f6..359f70ddbc 100644
--- a/script.cpp
+++ b/script.cpp
@@ -436,6 +436,10 @@ void Scumm::stopObjectCode() {
ScriptSlot *ss;
ss = &vm.slot[_currentScript];
+ if (ss->cutsceneOverride == 255) { /* FIXME: What does this? */
+ warning("Cutscene for script %d has overflown. Resetting.", ss->number);
+ ss->cutsceneOverride = 0;
+ }
if (ss->where!=WIO_GLOBAL && ss->where!=WIO_LOCAL) {
if (ss->cutsceneOverride)