diff options
Diffstat (limited to 'src/gui/widgets/shopitems.cpp')
-rw-r--r-- | src/gui/widgets/shopitems.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/shopitems.cpp b/src/gui/widgets/shopitems.cpp index 15f4292a5..6cd0ef39d 100644 --- a/src/gui/widgets/shopitems.cpp +++ b/src/gui/widgets/shopitems.cpp @@ -43,8 +43,11 @@ int ShopItems::getNumberOfElements() std::string ShopItems::getElementAt(int i) { - if (i < 0 || (unsigned)i >= mShopItems.size() || !mShopItems.at(i)) + if (i < 0 || static_cast<unsigned>(i) >= mShopItems.size() + || !mShopItems.at(i)) + { return ""; + } return mShopItems.at(i)->getDisplayName(); } |