Fix ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM progress calc

Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
DiSlord 2009-04-12 02:35:35 +04:00
parent 278cd970f4
commit 1a55952fa0

View file

@ -9921,7 +9921,7 @@ Item* Player::StoreItem( ItemPosCountVec const& dest, Item* pItem, bool update )
return NULL; return NULL;
Item* lastItem = pItem; Item* lastItem = pItem;
uint32 entry = pItem->GetEntry();
for(ItemPosCountVec::const_iterator itr = dest.begin(); itr != dest.end(); ) for(ItemPosCountVec::const_iterator itr = dest.begin(); itr != dest.end(); )
{ {
uint16 pos = itr->pos; uint16 pos = itr->pos;
@ -9937,7 +9937,7 @@ Item* Player::StoreItem( ItemPosCountVec const& dest, Item* pItem, bool update )
lastItem = _StoreItem(pos,pItem,count,true,update); lastItem = _StoreItem(pos,pItem,count,true,update);
} }
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, entry);
return lastItem; return lastItem;
} }
@ -13063,7 +13063,6 @@ void Player::ItemAddedQuestCheck( uint32 entry, uint32 count )
} }
} }
UpdateForQuestsGO(); UpdateForQuestsGO();
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, entry);
} }
void Player::ItemRemovedQuestCheck( uint32 entry, uint32 count ) void Player::ItemRemovedQuestCheck( uint32 entry, uint32 count )