diff options
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r-- | src/gui/inventory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index 4681d047..4fc1bd1d 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -27,6 +27,7 @@ #include "../resources/image.h" #include "button.h" #include "../being.h" +#include "../engine.h" #include <sstream> InventoryWindow::InventoryWindow(): @@ -140,8 +141,8 @@ void InventoryWindow::action(const std::string &eventId) } } else if (eventId == "drop") { - dropItem(items->getIndex(), items->getQuantity()); - // TODO: now drop all the items, you should choose quantity instead + itemAmountWindow->resetAmount(); + itemAmountWindow->setVisible(true); } } } |