diff options
Diffstat (limited to 'script.cpp')
-rw-r--r-- | script.cpp | 4 |
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) |