aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-04-28 19:38:37 +0200
committerMachiavelli <none@none>2010-04-28 19:38:37 +0200
commita82d3d88c9e15361f459edf80e66781b02a010c5 (patch)
tree806116e458aa698ff7c48f7effbaf8823c07dd2d /src/game/Player.h
parent95e5ba5bdb69443ab2b3221be0008804b71fc5ce (diff)
Fix item vendor refund for stackable items.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r--src/game/Player.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Player.h b/src/game/Player.h
index a5f4e842933..c038b24afb3 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -1200,7 +1200,8 @@ class Player : public Unit, public GridObject<Player>
uint8 _CanTakeMoreSimilarItems(uint32 entry, uint32 count, Item* pItem, uint32* no_space_count = NULL) const;
uint8 _CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec& dest, uint32 entry, uint32 count, Item *pItem = NULL, bool swap = false, uint32* no_space_count = NULL) const;
- void AddRefundReference(uint64 it);
+ void AddRefundReference(uint64 it, uint32 stackCount);
+ void AlterRefundReferenceCount(uint64 it, uint32 newCount);
void DeleteRefundReference(uint64 it);
void ApplyEquipCooldown(Item * pItem);
@@ -2588,7 +2589,7 @@ class Player : public Unit, public GridObject<Player>
uint8 _CanStoreItem_InInventorySlots(uint8 slot_begin, uint8 slot_end, ItemPosCountVec& dest, ItemPrototype const *pProto, uint32& count, bool merge, Item *pSrcItem, uint8 skip_bag, uint8 skip_slot) const;
Item* _StoreItem(uint16 pos, Item *pItem, uint32 count, bool clone, bool update);
- std::set<uint64> m_refundableItems;
+ std::map<uint64, uint32> m_refundableItems;
void UpdateKnownCurrencies(uint32 itemId, bool apply);
int32 CalculateReputationGain(uint32 creatureOrQuestLevel, int32 rep, int32 faction, bool for_quest);