diff options
Diffstat (limited to 'src/net/equipmenthandler.cpp')
-rw-r--r-- | src/net/equipmenthandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/equipmenthandler.cpp b/src/net/equipmenthandler.cpp index 23a8063f..2e0cc562 100644 --- a/src/net/equipmenthandler.cpp +++ b/src/net/equipmenthandler.cpp @@ -117,6 +117,7 @@ void EquipmentHandler::handleMessage(MessageIn *msg) position++; } logger->log("Position %i", position); + item = player_node->getInventory()->getItem(player_node->mEquipment->getEquipment(position)); // Unequip any existing equipped item in this position @@ -155,6 +156,7 @@ void EquipmentHandler::handleMessage(MessageIn *msg) break; item->setEquipped(false); + if (equipPoint & 0x8000) { // Arrows player_node->mEquipment->setArrows(0); } @@ -176,6 +178,7 @@ void EquipmentHandler::handleMessage(MessageIn *msg) break; item = inventory->getItem(index); + if (item) { item->setEquipped(true); player_node->mEquipment->setArrows(index); |