summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp13
-rw-r--r--src/actions/actions.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 0b501bdbf..135fec27f 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1421,4 +1421,17 @@ impHandler(invToStorageHalf)
return true;
}
+impHandler(invToStorageAll1)
+{
+ Item *const item = getItemByInvIndex(event);
+ if (!item)
+ return true;
+
+ inventoryHandler->moveItem2(Inventory::INVENTORY,
+ item->getInvIndex(),
+ item->getQuantity() - 1,
+ Inventory::STORAGE);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 0ab312351..36daa9c21 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -101,6 +101,7 @@ namespace Actions
decHandler(invToStorage);
decHandler(invToStorage10);
decHandler(invToStorageHalf);
+ decHandler(invToStorageAll1);
} // namespace Actions
#undef decHandler