diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-14 10:36:39 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-14 10:36:39 +0000 |
commit | b9772c8575708a9f28d89b3b973af73e382e9329 (patch) | |
tree | d5490d229b2ff43d033d07c1c23e36027255406c /src/net/inventoryhandler.cpp | |
parent | 1c46904573aa83132afc90f86381034405ae796e (diff) | |
download | mana-b9772c8575708a9f28d89b3b973af73e382e9329.tar.gz mana-b9772c8575708a9f28d89b3b973af73e382e9329.tar.bz2 mana-b9772c8575708a9f28d89b3b973af73e382e9329.tar.xz mana-b9772c8575708a9f28d89b3b973af73e382e9329.zip |
Fixed error-prone interface. Handled money as an inventory part.
Diffstat (limited to 'src/net/inventoryhandler.cpp')
-rw-r--r-- | src/net/inventoryhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp index ce01c3dc..354dd685 100644 --- a/src/net/inventoryhandler.cpp +++ b/src/net/inventoryhandler.cpp @@ -58,6 +58,12 @@ void InventoryHandler::handleMessage(MessageIn &msg) while (msg.getUnreadLength()) { int slot = msg.readByte(); + if (slot == 255) + { + player_node->setMoney(msg.readLong()); + continue; + } + int id = msg.readShort(); if (slot < EQUIPMENT_SIZE) { |