[9303] Restore skip one from startup (by DBC data) but not existed items.

This commit is contained in:
VladimirMangos 2010-02-04 22:00:10 +03:00
parent dd2239eea9
commit d7d4c2da9f
2 changed files with 5 additions and 4 deletions

View file

@ -2071,13 +2071,14 @@ void ObjectMgr::LoadItemPrototypes()
for(int j = 0; j < MAX_OUTFIT_ITEMS; ++j)
{
if(entry->ItemId[j] <= 0)
if (entry->ItemId[j] <= 0)
continue;
uint32 item_id = entry->ItemId[j];
if(!GetItemPrototype(item_id))
notFoundOutfit.insert(item_id);
if (!GetItemPrototype(item_id))
if (item_id != 40582) // nonexistent item by default but referenced in DBC, skip it from errors
notFoundOutfit.insert(item_id);
}
}