diff options
-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 |