summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:49:55 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:49:55 +0200
commit04ca1f61bfde0f8853f478ec1b196bfc1fb9889e (patch)
treead15eaf04604ae5465c4c1f864c17f769ae8c421 /src/net/ea
parent55ee3f8a67132b6f6542b21e69d9ccab064256ca (diff)
downloadmana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.tar.gz
mana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.tar.bz2
mana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.tar.xz
mana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.zip
Fixed first item in inventory showing up in arrow slot
Index 0 is now a valid index, namely the first item in the inventory. I forgot to change this line to use -1.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/equipmenthandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ea/equipmenthandler.cpp b/src/net/ea/equipmenthandler.cpp
index 0df0b31e..0153b5da 100644
--- a/src/net/ea/equipmenthandler.cpp
+++ b/src/net/ea/equipmenthandler.cpp
@@ -172,7 +172,7 @@ void EquipmentHandler::handleMessage(MessageIn &msg)
item->setEquipped(false);
if (equipPoint & 0x8000) { // Arrows
- player_node->mEquipment->setArrows(0);
+ player_node->mEquipment->setArrows(-1);
}
else {
player_node->mEquipment->removeEquipment(position);