From d3b8152a714d8ec4a573d51bc844a129c80b533c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 17 Aug 2015 20:16:22 -0400 Subject: SHERLOCK: RT: Extra integrity checks for the _talkSequenceStack --- engines/sherlock/talk.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/sherlock/talk.h') diff --git a/engines/sherlock/talk.h b/engines/sherlock/talk.h index dcc970a2ba..8352435a09 100644 --- a/engines/sherlock/talk.h +++ b/engines/sherlock/talk.h @@ -336,11 +336,6 @@ public: */ void pushTalkSequence(Object *obj); - /** - * Returns true if the script stack is empty - */ - bool isSequencesEmpty() const { return _scriptStack.empty(); } - /** * Pops an entry off of the script stack */ @@ -372,6 +367,11 @@ public: * object's sequence */ virtual void pullSequence() = 0; + + /** + * Returns true if the script stack is empty + */ + virtual bool isSequencesEmpty() const = 0; }; } // End of namespace Sherlock -- cgit v1.2.3