summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-09-05 19:03:27 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2010-09-05 19:03:27 +0200
commit6c98fc5c74fce6cf2135d9add874717434d4ac12 (patch)
tree4399e78c4388ed43e9b836fff695d2bd99254f57
parentf82d012e96cf90556a213bf6058de43dc0a9ae7f (diff)
downloadmana-6c98fc5c74fce6cf2135d9add874717434d4ac12.tar.gz
mana-6c98fc5c74fce6cf2135d9add874717434d4ac12.tar.bz2
mana-6c98fc5c74fce6cf2135d9add874717434d4ac12.tar.xz
mana-6c98fc5c74fce6cf2135d9add874717434d4ac12.zip
Unloading mNamedItemInfos
How to reproduce the bug: Switch login, then for every item there is this warning in the log file: "ItemDB: Duplicate name of item found". Reviewed-by: thorbjorn
-rw-r--r--src/resources/itemdb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 3fdee021..cb91e8d3 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -256,6 +256,7 @@ void ItemDB::unload()
delete_all(mItemInfos);
mItemInfos.clear();
+ mNamedItemInfos.clear();
mLoaded = false;
}