diff options
author | megamage <none@none> | 2009-01-23 14:23:25 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-23 14:23:25 -0600 |
commit | f0ebb960642ad0fa43fa49fd3cc76f6516de6cd3 (patch) | |
tree | a6fa76445cfa07bf060a473ad1910c724fa679a4 /src/game/AuctionHouse.cpp | |
parent | b28b8b5ced6f0e0a7b52403010a7b465b5a765ae (diff) | |
parent | c3ce24c30fc824d73f719780d7791a0095c14d61 (diff) |
*Update to HG 957.
--HG--
branch : trunk
Diffstat (limited to 'src/game/AuctionHouse.cpp')
-rw-r--r-- | src/game/AuctionHouse.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/AuctionHouse.cpp b/src/game/AuctionHouse.cpp index a12e8a8f238..39aaa864bd2 100644 --- a/src/game/AuctionHouse.cpp +++ b/src/game/AuctionHouse.cpp @@ -28,6 +28,7 @@ #include "UpdateMask.h" #include "AuctionHouseObject.h" #include "Util.h" +#include "AuctionHouseBot.h" //please DO NOT use iterator++, because it is slower than ++iterator!!! //post-incrementation is always slower than pre-incrementation ! @@ -171,7 +172,10 @@ void WorldSession::SendAuctionOutbiddedMail(AuctionEntry *auction, uint32 newPri std::ostringstream msgAuctionOutbiddedSubject; msgAuctionOutbiddedSubject << auction->item_template << ":0:" << AUCTION_OUTBIDDED; - if (oldBidder) + if (oldBidder && !_player) + oldBidder->GetSession()->SendAuctionBidderNotification( auction->location, auction->Id, AHBplayerGUID, newPrice, objmgr.GetAuctionOutBid(auction->bid), auction->item_template); + + if (oldBidder && _player) oldBidder->GetSession()->SendAuctionBidderNotification( auction->location, auction->Id, _player->GetGUID(), newPrice, objmgr.GetAuctionOutBid(auction->bid), auction->item_template); WorldSession::SendMailTo(oldBidder, MAIL_AUCTION, MAIL_STATIONERY_AUCTION, auction->location, auction->bidder, msgAuctionOutbiddedSubject.str(), 0, NULL, auction->bid, 0, MAIL_CHECK_MASK_NONE); |