summaryrefslogtreecommitdiff
path: root/src/equipment.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-11-22 18:53:56 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-11-22 18:53:56 +0100
commite97d5a38f868202b409b36acccd92676dbac86df (patch)
treea45ff47ba14ec22ff9d9235831e29f3f909f41b1 /src/equipment.h
parent1c392d41f9004c3bf0b8455465ec62fe89109a63 (diff)
downloadmana-e97d5a38f868202b409b36acccd92676dbac86df.tar.gz
mana-e97d5a38f868202b409b36acccd92676dbac86df.tar.bz2
mana-e97d5a38f868202b409b36acccd92676dbac86df.tar.xz
mana-e97d5a38f868202b409b36acccd92676dbac86df.zip
Fixed warning about passing NULL for a non-pointer
Encountered by z0ro.
Diffstat (limited to 'src/equipment.h')
-rw-r--r--src/equipment.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/equipment.h b/src/equipment.h
index 4993e4df..28a96baa 100644
--- a/src/equipment.h
+++ b/src/equipment.h
@@ -43,26 +43,22 @@ class Equipment
/**
* Set equipment at the given slot.
*/
- void
- setEquipment(int index, int inventoryIndex);
+ void setEquipment(int index, int inventoryIndex);
/**
* Remove equipment from the given slot.
*/
- void
- removeEquipment(int index) { mEquipment[index] = 0; }
+ void removeEquipment(int index) { mEquipment[index] = 0; }
/**
- * Get the item used in the arrow slot.
+ * Returns the item used in the arrow slot.
*/
- int
- getArrows() { return mArrows; }
+ int getArrows() const { return mArrows; }
/**
* Set the item used in the arrow slot.
*/
- void
- setArrows(int arrows) { mArrows = arrows; }
+ void setArrows(int arrows) { mArrows = arrows; }
private:
int mEquipment[EQUIPMENT_SIZE];