summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-20 17:24:08 -0700
committerIra Rice <irarice@gmail.com>2009-01-20 17:24:08 -0700
commit36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd (patch)
tree8bd2dffaf311a4c6ef43fc610c5e4795e24ce965 /src/resources/itemdb.cpp
parent567cd92eae386c28b6af90121d0f8f575dce0687 (diff)
downloadmana-client-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.tar.gz
mana-client-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.tar.bz2
mana-client-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.tar.xz
mana-client-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.zip
Made link searching case insensitive.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 53e7530b..d27ad23d 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -124,7 +124,14 @@ void ItemDB::load()
NamedItemInfoIterator itr = mNamedItemInfos.find(name);
if (itr == mNamedItemInfos.end())
{
- mNamedItemInfos[name] = itemInfo;
+ std::string temp = name;
+
+ for (unsigned int i = 0; i < temp.size(); i++)
+ {
+ temp[i] = (char) tolower(temp[i]);
+ }
+
+ mNamedItemInfos[temp] = itemInfo;
}
else
{