summaryrefslogtreecommitdiff
path: root/src/equipment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/equipment.cpp')
-rw-r--r--src/equipment.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/equipment.cpp b/src/equipment.cpp
index 6cd4d967..d1f9a6cf 100644
--- a/src/equipment.cpp
+++ b/src/equipment.cpp
@@ -26,18 +26,19 @@
#include <algorithm>
#include "item.h"
+#include "item.h"
Equipment::Equipment():
mArrows(0)
{
- std::fill_n(mEquipment, EQUIPMENT_SIZE, (Item*)0);
+ std::fill_n(mEquipment, EQUIPMENT_SIZE, (Item*) 0);
}
void
Equipment::removeEquipment(Item *item)
{
- Item **i = std::find(mEquipment, mEquipment+EQUIPMENT_SIZE, item);
- if (i != mEquipment+EQUIPMENT_SIZE) {
+ Item **i = std::find(mEquipment, mEquipment + EQUIPMENT_SIZE, item);
+ if (i != mEquipment + EQUIPMENT_SIZE) {
*i = 0;
}
}