Skip to content

Commit

Permalink
TITANIC: Fix infinite loop in BarbotScript
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 23, 2017
1 parent fc818fd commit 68ab3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/titanic/true_talk/barbot_script.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 68ab3f2

Please sign in to comment.