diff --git a/source/game/StarPlayerInventory.cpp b/source/game/StarPlayerInventory.cpp index 8ae052c..8fe2cd8 100644 --- a/source/game/StarPlayerInventory.cpp +++ b/source/game/StarPlayerInventory.cpp @@ -188,7 +188,7 @@ bool PlayerInventory::slotValid(InventorySlot const& slot) const { if (auto bag = bagContents(bagSlot->first)) { if ((size_t)bagSlot->second >= bag->size()) return false; - } + } else return false; } return true;