diff options
Diffstat (limited to 'src/game/Player.h')
-rw-r--r-- | src/game/Player.h | 5 |
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); |