aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_talk.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-17 20:16:22 -0400
committerPaul Gilbert2015-08-17 20:16:22 -0400
commitd3b8152a714d8ec4a573d51bc844a129c80b533c (patch)
treea4a4f6678c27505a96c733c7014a066281937052 /engines/sherlock/tattoo/tattoo_talk.cpp
parent39e75d75c6dbc728124ebacfa97937ae6f042e2f (diff)
downloadscummvm-rg350-d3b8152a714d8ec4a573d51bc844a129c80b533c.tar.gz
scummvm-rg350-d3b8152a714d8ec4a573d51bc844a129c80b533c.tar.bz2
scummvm-rg350-d3b8152a714d8ec4a573d51bc844a129c80b533c.zip
SHERLOCK: RT: Extra integrity checks for the _talkSequenceStack
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_talk.cpp')
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index b8b8944688..49becbe3b4 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -948,6 +948,15 @@ void TattooTalk::pullSequence() {
}
}
+bool TattooTalk::isSequencesEmpty() const {
+ for (int idx = 0; idx < TALK_SEQUENCE_STACK_SIZE; ++idx) {
+ if (_talkSequenceStack[idx]._obj)
+ return false;
+ }
+
+ return true;
+}
+
} // End of namespace Tattoo
} // End of namespace Sherlock