summaryrefslogtreecommitdiff
path: root/src/equipment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/equipment.cpp')
-rw-r--r--src/equipment.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/equipment.cpp b/src/equipment.cpp
index 41722300..76382528 100644
--- a/src/equipment.cpp
+++ b/src/equipment.cpp
@@ -51,5 +51,9 @@ void Equipment::setEquipment(int index, int id, int quantity)
mEquipment[index] = (id > 0) ? new Item(id, quantity) : 0;
if (mEquipment[index])
+ {
mEquipment[index]->setInvIndex(index);
+ mEquipment[index]->setEquipped(true);
+ mEquipment[index]->setInEquipment(true);
+ }
}