aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/barbot_script.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-22 23:32:14 -0500
committerPaul Gilbert2017-01-22 23:32:14 -0500
commit68ab3f228ca2f8e2ef3fd5dcebd2167233e81f15 (patch)
treedee3bcbc002e744323ff1eb70e04d77a44d03ad8 /engines/titanic/true_talk/barbot_script.cpp
parentfc818fd2d640b9c2ec705cb926359bf201399724 (diff)
downloadscummvm-rg350-68ab3f228ca2f8e2ef3fd5dcebd2167233e81f15.tar.gz
scummvm-rg350-68ab3f228ca2f8e2ef3fd5dcebd2167233e81f15.tar.bz2
scummvm-rg350-68ab3f228ca2f8e2ef3fd5dcebd2167233e81f15.zip
TITANIC: Fix infinite loop in BarbotScript
Diffstat (limited to 'engines/titanic/true_talk/barbot_script.cpp')
-rw-r--r--engines/titanic/true_talk/barbot_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/barbot_script.cpp b/engines/titanic/true_talk/barbot_script.cpp
index d79ebedf4d..3da9d0e05f 100644
--- a/engines/titanic/true_talk/barbot_script.cpp
+++ b/engines/titanic/true_talk/barbot_script.cpp
@@ -1177,7 +1177,7 @@ int BarbotScript::applySentenceIds(int dialogueId, int v34) {
} else {
for (uint idx = 0; idx < _mappings.size(); ++idx) {
const TTscriptMapping &m = _mappings[idx];
- for (int vidx = 0; vidx < _mappings._valuesPerMapping; ++idx) {
+ for (int vidx = 0; vidx < _mappings._valuesPerMapping; ++vidx) {
if (m._values[vidx] == (uint)dialogueId) {
updateState(m._id, m._id, vidx);
break;