aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/messages/messages.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-29 09:33:03 -0400
committerPaul Gilbert2016-07-15 19:16:58 -0400
commitb9ad4ff7277505054b0de88b78e0034a462a026b (patch)
tree6c630535f229fbb4ee7781ac84bead5ec377419d /engines/titanic/messages/messages.cpp
parentd0301bce6f932b34810110796fa86bc367ddf89f (diff)
downloadscummvm-rg350-b9ad4ff7277505054b0de88b78e0034a462a026b.tar.gz
scummvm-rg350-b9ad4ff7277505054b0de88b78e0034a462a026b.tar.bz2
scummvm-rg350-b9ad4ff7277505054b0de88b78e0034a462a026b.zip
TITANIC: Fix dispatching messages by target name
Diffstat (limited to 'engines/titanic/messages/messages.cpp')
-rw-r--r--engines/titanic/messages/messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/messages/messages.cpp b/engines/titanic/messages/messages.cpp
index 9f46fef6ca..e25c22fc7e 100644
--- a/engines/titanic/messages/messages.cpp
+++ b/engines/titanic/messages/messages.cpp
@@ -73,7 +73,7 @@ bool CMessage::execute(const CString &target, const ClassDef *classDef, int flag
// Scan for the target by name
CProjectItem *project = g_vm->_window->_project;
for (CTreeItem *treeItem = project; treeItem; treeItem = treeItem->scan(project)) {
- if (treeItem->getName().compareToIgnoreCase(target))
+ if (!treeItem->getName().compareToIgnoreCase(target))
return execute(treeItem, classDef, flags);
}