[9142] Move start outfit items check to server loading.

Also drop one not needed now hack.
This commit is contained in:
VladimirMangos 2010-01-11 01:16:49 +03:00
parent dbeba5b0b7
commit 6769171a1d
3 changed files with 25 additions and 8 deletions

View file

@ -701,16 +701,10 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
uint32 item_id = oEntry->ItemId[j];
// Hack for not existed item id in dbc 3.0.3
if(item_id==40582)
continue;
// just skip, reported in ObjectMgr::LoadItemPrototypes
ItemPrototype const* iProto = ObjectMgr::GetItemPrototype(item_id);
if(!iProto)
{
sLog.outErrorDb("Initial item id %u (race %u class %u) from CharStartOutfit.dbc not listed in `item_template`, ignoring.",item_id,getRace(),getClass());
continue;
}
// BuyCount by default
uint32 count = iProto->BuyCount;