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 135fec27f..36a463da5 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1434,4 +1434,17 @@ impHandler(invToStorageAll1)
return true;
}
+impHandler(invToStorageAll)
+{
+ Item *const item = getItemByInvIndex(event);
+ if (!item)
+ return true;
+
+ inventoryHandler->moveItem2(Inventory::INVENTORY,
+ item->getInvIndex(),
+ item->getQuantity(),
+ Inventory::STORAGE);
+ return true;
+}
+
} // namespace Actions