diff options
author | David Athay <ko2fan@gmail.com> | 2008-06-14 12:42:49 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-06-14 12:42:49 +0000 |
commit | 5fbb6c822dcf01297a29078eb6abc552dcb8b80d (patch) | |
tree | 5c6a76a2875b588063ad8d5c9200ff7994c30668 /src/net/tradehandler.cpp | |
parent | 2f8ee95fbacb71e7cbca85fcc11e6f9f7e36c258 (diff) | |
download | mana-client-5fbb6c822dcf01297a29078eb6abc552dcb8b80d.tar.gz mana-client-5fbb6c822dcf01297a29078eb6abc552dcb8b80d.tar.bz2 mana-client-5fbb6c822dcf01297a29078eb6abc552dcb8b80d.tar.xz mana-client-5fbb6c822dcf01297a29078eb6abc552dcb8b80d.zip |
Fixed compilation errors and trade bug.
Diffstat (limited to 'src/net/tradehandler.cpp')
-rw-r--r-- | src/net/tradehandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tradehandler.cpp b/src/net/tradehandler.cpp index 85ab65c1..ed1536eb 100644 --- a/src/net/tradehandler.cpp +++ b/src/net/tradehandler.cpp @@ -159,6 +159,11 @@ void TradeHandler::handleMessage(MessageIn *msg) // Trade: New Item add response (was 0x00ea, now 01b1) { const int index = msg->readInt16(); + if (index == 0) + { + tradeWindow->receivedOk(true); + return; + } Item *item = player_node->getInventory()->getItem(index); Sint16 quantity = msg->readInt16(); |