aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-24 19:44:25 -0400
committerPaul Gilbert2015-08-24 19:44:25 -0400
commitb4651801dd9fb4192863c283faa8955fc69ea7b0 (patch)
treea78fbaf9616fb09e6a0daab8f1767d8b6b48aa1d
parent1c6316a3569173c5d5f3f52bb1226d4343deb612 (diff)
downloadscummvm-rg350-b4651801dd9fb4192863c283faa8955fc69ea7b0.tar.gz
scummvm-rg350-b4651801dd9fb4192863c283faa8955fc69ea7b0.tar.bz2
scummvm-rg350-b4651801dd9fb4192863c283faa8955fc69ea7b0.zip
SHERLOCK: RT: Fix aborting scripts prematurely after pausing
If a script was paused via a call to cmdPauseWithoutControl, and during this a second script is called and finishes, the first script was also being terminated prematurely
-rw-r--r--engines/sherlock/talk.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index dad6b411d5..010bb3dab8 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -1064,6 +1064,7 @@ OpcodeReturn Talk::cmdPauseWithoutControl(const byte *&str) {
events.setButtonState();
}
+ _endStr = false;
return RET_SUCCESS;
}