diff options
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index d6a8ec53d..a8d21367e 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1531,6 +1531,8 @@ impHandler(invToStorage) Item *item = nullptr; const int amount = getAmountFromEvent(event, item, InventoryType::INVENTORY); + if (!item) + return true; if (amount) { inventoryHandler->moveItem2(InventoryType::INVENTORY, |