summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/equipment.cpp11
-rw-r--r--src/equipment.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/src/equipment.cpp b/src/equipment.cpp
index 9a87c6b5..b2d5e609 100644
--- a/src/equipment.cpp
+++ b/src/equipment.cpp
@@ -54,14 +54,3 @@ void Equipment::setEquipment(int index, Item *item)
mEquipment[index] = item;
item->setEquipped(true);
}
-
-void Equipment::setArrows(Item *arrows)
-{
- if (mArrows)
- mArrows->setEquipped(false);
-
- mArrows = arrows;
-
- if (arrows)
- arrows->setEquipped(true);
-}
diff --git a/src/equipment.h b/src/equipment.h
index e497a156..7977894a 100644
--- a/src/equipment.h
+++ b/src/equipment.h
@@ -71,7 +71,7 @@ class Equipment
* Set the item used in the arrow slot.
*/
void
- setArrows(Item *arrows);
+ setArrows(Item *arrows) {mArrows = arrows;}
private:
Item *mEquipment[EQUIPMENT_SIZE];