summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 23:18:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 23:18:03 +0300
commit7380aa6e86b51ef62530bea5d6f6f63244dffc4a (patch)
tree1b9915284b2b9c3e0969ae05f54a53adba72e527 /src/gui/widgets
parent7e66a4606bb15d98197f71245fe191d03152ee5f (diff)
downloadmv-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.gz
mv-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.bz2
mv-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.xz
mv-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.zip
Add some missing checks and remove useless checks.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/shoplistbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index ce5f5f8e9..6dd871825 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -109,7 +109,7 @@ void ShopListBox::draw(Graphics *graphics)
ShopItem *const item = mShopItems->at(i);
if (item &&
(item->getDisabled() ||
- (mShopItems && mPlayerMoney < item->getPrice() && mPriceCheck) ||
+ (mPlayerMoney < item->getPrice() && mPriceCheck) ||
(mProtectItems && PlayerInfo::isItemProtected(item->getId()))))
{
if (i != mSelected)