diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-22 13:40:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-22 13:40:32 +0300 |
commit | f20c99d2bffe798806790e1f1ae838bba494d93c (patch) | |
tree | 4a10dad927c5e63b1e7a1038656d14a7e7dd4946 | |
parent | 2d29847485933bf0e9ccbea4456f5473418d4b18 (diff) | |
download | mv-f20c99d2bffe798806790e1f1ae838bba494d93c.tar.gz mv-f20c99d2bffe798806790e1f1ae838bba494d93c.tar.bz2 mv-f20c99d2bffe798806790e1f1ae838bba494d93c.tar.xz mv-f20c99d2bffe798806790e1f1ae838bba494d93c.zip |
Add missing check in inventory.
-rw-r--r-- | src/resources/inventory/inventory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/inventory/inventory.cpp b/src/resources/inventory/inventory.cpp index efcea0f55..7d78605dc 100644 --- a/src/resources/inventory/inventory.cpp +++ b/src/resources/inventory/inventory.cpp @@ -180,7 +180,8 @@ void Inventory::setCards(const int index, } Item *const item1 = mItems[index]; - item1->setCards(cards, size); + if (item1) + item1->setCards(cards, size); } void Inventory::clear() |