diff options
author | click <none@none> | 2010-04-30 22:35:37 +0200 |
---|---|---|
committer | click <none@none> | 2010-04-30 22:35:37 +0200 |
commit | 697685c3f57ffb9498e1a957333ea4fa6dd87b9a (patch) | |
tree | 096cbf097c629f7f48c00a16520db601ba5e6782 /src/game/Creature.h | |
parent | 4b1a9916acb8d2a8281346a430ee178434ec0c4b (diff) |
Add support for vendors selling the same items with different extendedCost - original code by Vladimir (thanks mate)
Closes issue #1756
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r-- | src/game/Creature.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h index b2b51785956..fd9499cd75e 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -333,9 +333,7 @@ struct VendorItemData m_items.push_back(new VendorItem(item, maxcount, ptime, ExtendedCost)); } bool RemoveItem(uint32 item_id); - VendorItem const* FindItem(uint32 item_id) const; - size_t FindItemSlot(uint32 item_id) const; - + VendorItem const* FindItemCostPair(uint32 item_id, uint32 extendedCost) const; void Clear() { for (VendorItemList::const_iterator itr = m_items.begin(); itr != m_items.end(); ++itr) |