diff options
author | Torbjörn Andersson | 2013-03-15 18:48:44 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2013-03-15 18:48:44 +0100 |
commit | 4b0d0ecddac516521f563cad54bbc7b77f9c112b (patch) | |
tree | fcd9cb812ab87d4341b66048d480a4c7e722574d /engines/toltecs/screen.h | |
parent | 5dae97223793d1f20898d703e00c9bd30a811f39 (diff) | |
download | scummvm-rg350-4b0d0ecddac516521f563cad54bbc7b77f9c112b.tar.gz scummvm-rg350-4b0d0ecddac516521f563cad54bbc7b77f9c112b.tar.bz2 scummvm-rg350-4b0d0ecddac516521f563cad54bbc7b77f9c112b.zip |
TOLTECS: Work around undefined subtitle behaviour at script loading
It may be because of an underlying bug, but there is at least one
case where a script is unloaded and replaced by another script while
that script slot still has an active subtitle. This causes it to
print random garbage for me, and may be causing crashes for others.
I've discussed this patch with johndoe, and he was ok with it, so
let's see how it works out.
Diffstat (limited to 'engines/toltecs/screen.h')
-rw-r--r-- | engines/toltecs/screen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/toltecs/screen.h b/engines/toltecs/screen.h index ee565e1882..52f412251e 100644 --- a/engines/toltecs/screen.h +++ b/engines/toltecs/screen.h @@ -183,6 +183,7 @@ public: void addTalkTextItemsToRenderQueue(); int16 getTalkTextDuration(); bool isTalkTextActive(int16 slotIndex); + void finishTalkTextItem(int16 slotIndex); void finishTalkTextItems(); void keepTalkTextItemsAlive(); |