diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-20 14:44:27 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-20 14:44:27 +0000 |
commit | b570d0413c23d1684bf26e08da45e7e939ec5f9f (patch) | |
tree | d994f7d8519bc574571798a71918641457689bbe /src/gui/inventory.cpp | |
parent | 3135c725cc37251943271cd8f939e646c9164259 (diff) | |
download | mana-b570d0413c23d1684bf26e08da45e7e939ec5f9f.tar.gz mana-b570d0413c23d1684bf26e08da45e7e939ec5f9f.tar.bz2 mana-b570d0413c23d1684bf26e08da45e7e939ec5f9f.tar.xz mana-b570d0413c23d1684bf26e08da45e7e939ec5f9f.zip |
Better working equipment!
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r-- | src/gui/inventory.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index 67d6fecb..d891db48 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -49,9 +49,7 @@ InventoryWindow::InventoryWindow(): items = new ItemContainer(); items->setSize(318, 40); items->setPosition(2, 2); - add(items); - - + add(items); } InventoryWindow::~InventoryWindow() @@ -140,8 +138,6 @@ void InventoryWindow::action(const std::string &eventId) if(items->isEquipment(items->getIndex())) { if(items->isEquipped(items->getIndex())) { unequipItem(items->getIndex()); - std::cout << "Blah\n"; - } else { equipItem(items->getIndex()); |