aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}