diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-21 00:47:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-21 00:47:44 +0300 |
commit | fffbd86a1014ad169ed2d68ea58cdddf346faa14 (patch) | |
tree | 713c96fcf7421ca87f638d312e752179281cb8fe /src/actions | |
parent | 1941b81a5a278f26a5d7e1f91903ab04c92e2cd1 (diff) | |
download | manaplus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.gz manaplus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.bz2 manaplus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.xz manaplus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.zip |
Add missing checks and non null attributes.
Diffstat (limited to 'src/actions')
-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, |