diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-09-14 06:45:40 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-09-14 06:45:40 -0600 |
commit | 96ca40bdc307be0a527d1c98edffdb1bc4c85f8f (patch) | |
tree | 6cbf7f82374c5a82fe44a33c39165adf38cb668e /src/equipment.cpp | |
parent | c5e7ba2e373466fcbe884c1579acd6ea5a8f5222 (diff) | |
download | mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.gz mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.bz2 mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.xz mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.zip |
Fix context menu for items in the EquipmentWindow
Diffstat (limited to 'src/equipment.cpp')
-rw-r--r-- | src/equipment.cpp | 4 |
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); + } } |