summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index bc641d331..165a9add0 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1390,4 +1390,17 @@ impHandler(useItemInv)
return true;
}
+impHandler(invToStorage)
+{
+ const int index = atoi(event.args.c_str());
+ const Inventory *const inv = PlayerInfo::getInventory();
+ if (inv)
+ {
+ Item *const item = inv->getItem(index);
+ ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd,
+ inventoryWindow, item);
+ }
+ return true;
+}
+
} // namespace Actions