summaryrefslogtreecommitdiff
path: root/src/net/ea/tradehandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-03 07:39:18 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-03 07:39:18 -0600
commit754cc498156371d0b6d32de0e58d7256236ed676 (patch)
tree54abf2170a48e72dffdf8a2ba7ded5386fc28813 /src/net/ea/tradehandler.cpp
parentd13b3eaca82e3547c84f60b9b135464ff3a51cf0 (diff)
downloadmana-754cc498156371d0b6d32de0e58d7256236ed676.tar.gz
mana-754cc498156371d0b6d32de0e58d7256236ed676.tar.bz2
mana-754cc498156371d0b6d32de0e58d7256236ed676.tar.xz
mana-754cc498156371d0b6d32de0e58d7256236ed676.zip
Fill in TMWServ's TradeHandler
Also started temparary implementation of the Net::getXHandler() methods and started using them.
Diffstat (limited to 'src/net/ea/tradehandler.cpp')
-rw-r--r--src/net/ea/tradehandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp
index f711f3c4..b7f8e369 100644
--- a/src/net/ea/tradehandler.cpp
+++ b/src/net/ea/tradehandler.cpp
@@ -238,10 +238,10 @@ void TradeHandler::respond(bool accept)
outMsg.writeInt8(accept ? 3 : 4);
}
-void TradeHandler::addItem(int slotNum, int amount)
+void TradeHandler::addItem(Item *item, int amount)
{
MessageOut outMsg(CMSG_TRADE_ITEM_ADD_REQUEST);
- outMsg.writeInt16(slotNum + INVENTORY_OFFSET);
+ outMsg.writeInt16(item->getInvIndex() + INVENTORY_OFFSET);
outMsg.writeInt32(amount);
}