diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-31 00:23:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-31 00:23:46 +0300 |
commit | 21244d05278ca3a901bc0e0e34b8d0464563f264 (patch) | |
tree | 9720f8ab9684eff9831649765a5e3d467fd2489e /src/gui/widgets | |
parent | 382d24526919eafc08df19169046fdae190e10da (diff) | |
download | manaverse-21244d05278ca3a901bc0e0e34b8d0464563f264.tar.gz manaverse-21244d05278ca3a901bc0e0e34b8d0464563f264.tar.bz2 manaverse-21244d05278ca3a901bc0e0e34b8d0464563f264.tar.xz manaverse-21244d05278ca3a901bc0e0e34b8d0464563f264.zip |
Fix compilation warning.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 5 |
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) { |