summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/itemcontainer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 59d5c8976..650911f9d 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -928,10 +928,9 @@ void ItemContainer::adjustHeight()
if (mGridRows == 0 || (mLastUsedSlot + 1) % mGridColumns > 0)
++mGridRows;
- const unsigned int invSize = mInventory->getSize();
+ const int invSize = mInventory->getSize();
int maxRows = mShowEmptyRows == ShowEmptyRows_true ?
- std::max(invSize / mGridColumns,
- static_cast<unsigned int>(mGridRows)) : mGridRows;
+ std::max(invSize / mGridColumns, mGridRows) : mGridRows;
if (mShowEmptyRows == ShowEmptyRows_true)
{