diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 13 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
2 files changed, 14 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 diff --git a/src/actions/actions.h b/src/actions/actions.h index 36daa9c21..14027bca9 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -102,6 +102,7 @@ namespace Actions decHandler(invToStorage10); decHandler(invToStorageHalf); decHandler(invToStorageAll1); + decHandler(invToStorageAll); } // namespace Actions #undef decHandler |