[Scummvm-git-logs] scummvm master -> aa77e260b2aab6d48f7e11bdef422aa59d778a4b
dreammaster
dreammaster at scummvm.org
Wed Feb 15 04:40:24 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
aa77e260b2 TITANIC: Fix findByName when doing a subsearch match
Commit: aa77e260b2aab6d48f7e11bdef422aa59d778a4b
https://github.com/scummvm/scummvm/commit/aa77e260b2aab6d48f7e11bdef422aa59d778a4b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-02-14T22:40:13-05:00
Commit Message:
TITANIC: Fix findByName when doing a subsearch match
Changed paths:
engines/titanic/core/tree_item.cpp
diff --git a/engines/titanic/core/tree_item.cpp b/engines/titanic/core/tree_item.cpp
index 97d06d7..b9b9aca 100644
--- a/engines/titanic/core/tree_item.cpp
+++ b/engines/titanic/core/tree_item.cpp
@@ -274,7 +274,7 @@ CNamedItem *CTreeItem::findByName(const CString &name, bool subMatch) {
itemName.toLowercase();
if (subMatch) {
- if (itemName.left(name.size()).compareTo(nameLower))
+ if (!itemName.left(nameLower.size()).compareTo(nameLower))
return dynamic_cast<CNamedItem *>(treeItem);
} else {
if (!itemName.compareTo(nameLower))
More information about the Scummvm-git-logs
mailing list