aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk
diff options
context:
space:
mode:
authorPaul Gilbert2016-12-17 10:36:47 -0500
committerPaul Gilbert2016-12-17 10:36:47 -0500
commit81bf4476cd6237050caf4d6f8a5a1685cb77fa2a (patch)
tree769046e1480ee9ac6fe183f278ca88da12810765 /engines/titanic/true_talk
parentfb3f76cde947b7320765793850d6e432dffa464e (diff)
downloadscummvm-rg350-81bf4476cd6237050caf4d6f8a5a1685cb77fa2a.tar.gz
scummvm-rg350-81bf4476cd6237050caf4d6f8a5a1685cb77fa2a.tar.bz2
scummvm-rg350-81bf4476cd6237050caf4d6f8a5a1685cb77fa2a.zip
TITANIC: Revert incorrect change to category check in processEntries
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r--engines/titanic/true_talk/tt_npc_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/tt_npc_script.cpp b/engines/titanic/true_talk/tt_npc_script.cpp
index 2a5c155421..7540a738b5 100644
--- a/engines/titanic/true_talk/tt_npc_script.cpp
+++ b/engines/titanic/true_talk/tt_npc_script.cpp
@@ -707,7 +707,7 @@ int TTnpcScript::processEntries(const TTsentenceEntries *entries, uint entryCoun
for (uint loopCtr = 0; loopCtr < 2; ++loopCtr) {
for (uint entryCtr = 0; entryCtr < entryCount; ++entryCtr) {
const TTsentenceEntry &entry = (*entries)[entryCtr];
- if (entry._category == categoryNum && (loopCtr == 0 || entry._category))
+ if (entry._category != categoryNum && (loopCtr == 0 || entry._category))
continue;
bool flag;