From fffbd86a1014ad169ed2d68ea58cdddf346faa14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Jul 2015 00:47:44 +0300 Subject: Add missing checks and non null attributes. --- src/actions/actions.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/actions') 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, -- cgit v1.2.3-70-g09d2