diff options
author | silinoron <none@none> | 2010-08-23 21:41:29 -0700 |
---|---|---|
committer | silinoron <none@none> | 2010-08-23 21:41:29 -0700 |
commit | 85e72c9132d8796cfcd942f47064cc9576d75141 (patch) | |
tree | bcbb2a59852314f864fd7461c42b8cf54c25341c | |
parent | c2286fc70d37eaee744d0ffbd9e7ac42d9edd8a4 (diff) |
Only send LANG_NOT_ENOUGH_GOLD notification during trade if the trader does not have enough money...
Thanks 0xFuture.
Fixes issue #3587
Update THANKS file...
--HG--
branch : trunk
-rw-r--r-- | THANKS | 2 | ||||
-rw-r--r-- | src/server/game/Server/Protocol/Handlers/TradeHandler.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -65,4 +65,4 @@ Malcrom, Vladmimír Lipták, retriman, hyriuu, Smakapotatis, PainKiller, bkhorizon, n0n4m3, Chesterfield, Frankir, Wowka321, Morpheux, p0wer, Ouden, toshik, laise, yavi, Splinter, Syntec, Arthas, denyde, unholy, Vaughner, blackmanos, edrinn, Supabad, click, silverice, SupaBad, Xanadu, -Socolin, Toni.Shocker +Socolin, Toni.Shocker, Silinoron, 0xFuture, xK1 diff --git a/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp b/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp index 9c9f71064e6..6cf31f5da59 100644 --- a/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp @@ -281,7 +281,7 @@ void WorldSession::HandleAcceptTradeOpcode(WorldPacket& /*recvPacket*/) } // not accept case incorrect money amount - if (trader->HasEnoughMoney(his_trade->GetMoney())) + if (!trader->HasEnoughMoney(his_trade->GetMoney())) { trader->GetSession()->SendNotification(LANG_NOT_ENOUGH_GOLD); his_trade->SetAccepted(false, true); |