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
2010-08-23 21:41:29 -07:00
parent c2286fc70d
commit 85e72c9132
2 changed files with 2 additions and 2 deletions
@@ -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);