diff options
Diffstat (limited to 'src/equipment.h')
-rw-r--r-- | src/equipment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/equipment.h b/src/equipment.h index 8b2ce127..2427539c 100644 --- a/src/equipment.h +++ b/src/equipment.h @@ -52,7 +52,7 @@ class Equipment * Remove equipment from the given slot. */ void - removeEquipment(int index) { mEquipment[index] = 0; } + removeEquipment(int index) { if (index >= 0 && index < EQUIPMENT_SIZE) mEquipment[index] = 0; } /** * Get the item used in the arrow slot. |