From d7d4c2da9fa1ac9828204f10067667887ec1f42b Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Thu, 4 Feb 2010 22:00:10 +0300 Subject: [PATCH] [9303] Restore skip one from startup (by DBC data) but not existed items. --- src/game/ObjectMgr.cpp | 7 ++++--- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 258308ca4..5a139c5e9 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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); } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 38aa9734a..10acd5a54 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9302" + #define REVISION_NR "9303" #endif // __REVISION_NR_H__