diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 00:01:39 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 00:01:39 +0100 |
commit | 926df5f18460b9c0d273e5c02c984afff7a04079 (patch) | |
tree | 3632b3ebd3222df845f3cad16867764ba7356af9 /src/resources | |
parent | c7d5879f96011f0db75bc0b78a9cb2e3ac587fee (diff) | |
download | mana-926df5f18460b9c0d273e5c02c984afff7a04079.tar.gz mana-926df5f18460b9c0d273e5c02c984afff7a04079.tar.bz2 mana-926df5f18460b9c0d273e5c02c984afff7a04079.tar.xz mana-926df5f18460b9c0d273e5c02c984afff7a04079.zip |
Fixed duplicate check for item names
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/itemdb.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index f7162db5..2aab720d 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -190,12 +190,12 @@ void ItemDB::load() mItemInfos[id] = itemInfo; if (!name.empty()) { - NamedItemInfoIterator itr = mNamedItemInfos.find(name); + std::string temp = name; + toLower(trim(temp)); + + NamedItemInfoIterator itr = mNamedItemInfos.find(temp); if (itr == mNamedItemInfos.end()) { - std::string temp = name; - toLower(trim(temp)); - mNamedItemInfos[temp] = itemInfo; } else |