aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_talk.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-19 08:21:53 -0400
committerPaul Gilbert2015-08-19 08:21:53 -0400
commitbc839e4c3f7361120790bbaf42af8a0528c9281a (patch)
treec31d0a1b7ce7603773837bfb795a970827452e78 /engines/sherlock/tattoo/tattoo_talk.cpp
parentd4e5e447925d251afca20afec0e090b210740c82 (diff)
downloadscummvm-rg350-bc839e4c3f7361120790bbaf42af8a0528c9281a.tar.gz
scummvm-rg350-bc839e4c3f7361120790bbaf42af8a0528c9281a.tar.bz2
scummvm-rg350-bc839e4c3f7361120790bbaf42af8a0528c9281a.zip
SHERLOCK: RT: Clear sequence stack when changing scenes
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_talk.cpp')
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index 455d41bd48..c7a970984c 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -983,6 +983,12 @@ bool TattooTalk::isSequencesEmpty() const {
return true;
}
+void TattooTalk::clearSequences() {
+ for (int idx = 0; idx < TALK_SEQUENCE_STACK_SIZE; ++idx) {
+ _sequenceStack[idx]._obj = nullptr;
+ }
+}
+
} // End of namespace Tattoo
} // End of namespace Sherlock