SHERLOCK: Remove redundant _scriptCurrentIndex field

This commit is contained in:
Paul Gilbert 2015-05-13 18:33:23 -04:00 committed by Willem Jan Palenstijn
parent 4cffb1c65f
commit 2a7019bd3d
3 changed files with 4 additions and 40 deletions

View file

@ -1694,9 +1694,6 @@ void UserInterface::doTalkControl() {
sound._speechOn = false;
}
// Set the _scriptCurrentIndex so if the statement is irrupted, the entire
// reply will be shown when it's restarted
talk._scriptCurrentIndex = 0;
talk.waitForMore(talk._statements[_selector]._statement.size());
if (talk._talkToAbort)
return;