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/tattoo/tattoo_user_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sherlock/tattoo/tattoo_user_interface.cpp') diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp index 62fd890be9..68bc29bd12 100644 --- a/engines/sherlock/tattoo/tattoo_user_interface.cpp +++ b/engines/sherlock/tattoo/tattoo_user_interface.cpp @@ -378,6 +378,9 @@ void TattooUserInterface::doStandardControl() { if (vm._runningProlog) return; + // There shouldn't be anything left on the talk sequence stack since we're back in control + assert(talk.isSequencesEmpty()); + // When the end credits are active, any press will open the ScummVM global main menu if (_creditsWidget.active()) { if (_keyState.keycode || events._released || events._rightReleased) { -- cgit v1.2.3