diff options
author | Spp <none@none> | 2010-03-09 21:11:54 +0100 |
---|---|---|
committer | Spp <none@none> | 2010-03-09 21:11:54 +0100 |
commit | 9df357f5d99a8204b866b1148b433734642cf47b (patch) | |
tree | 691311268683b4d2e16fdd4a3d0168334f1a79e4 /src/game/Player.h | |
parent | 6c725aa5305f57d0fd8f4257db45f39c15c9d39e (diff) |
Fix enchant items in trade window.
Original patch by Kierkegaard
closes issue #985
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r-- | src/game/Player.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Player.h b/src/game/Player.h index 7b821ac5495..79d75d34821 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1244,6 +1244,12 @@ class Player : public Unit, public GridObject<Player> Player* GetTrader() const { return pTrader; } void ClearTrade(); void TradeCancel(bool sendback); + Item *GetItemByTradeSlot(uint8 slot) const + { + if (slot < TRADE_SLOT_COUNT && tradeItems[slot]) + return GetItemByGuid(tradeItems[slot]); + return NULL; + } void UpdateEnchantTime(uint32 time); void UpdateItemDuration(uint32 time, bool realtimeonly=false); |