diff options
Diffstat (limited to 'src')
-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() |