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
This commit is contained in:
silinoron committed 2010-08-23 21:41:29 -07:00
1 parent c2286fc70d
commit 85e72c9132
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -65,4 +65,4 @@ Malcrom, Vladmim
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
@@ -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);