From 6c98fc5c74fce6cf2135d9add874717434d4ac12 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Sun, 5 Sep 2010 19:03:27 +0200 Subject: 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 --- src/resources/itemdb.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/resources') 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; } -- cgit v1.2.3-70-g09d2