diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-29 23:24:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-29 23:24:52 +0300 |
commit | c7c6894dcede6778f311171f1128024b5ba97d84 (patch) | |
tree | 4cd017cc9e96d2532862c18583dda05c53b46bbc /src/gui | |
parent | b6bdc6a3406e4171b3e46c3735b7801edd27dd67 (diff) | |
download | mv-c7c6894dcede6778f311171f1128024b5ba97d84.tar.gz mv-c7c6894dcede6778f311171f1128024b5ba97d84.tar.bz2 mv-c7c6894dcede6778f311171f1128024b5ba97d84.tar.xz mv-c7c6894dcede6778f311171f1128024b5ba97d84.zip |
fix working with protected items by automatic checks.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/shoplistbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp index 827bb6755..6516b056f 100644 --- a/src/gui/widgets/shoplistbox.cpp +++ b/src/gui/widgets/shoplistbox.cpp @@ -108,8 +108,8 @@ void ShopListBox::draw(gcn::Graphics *gcnGraphics) gcn::Color* backgroundColor = &mBackgroundColor; ShopItem *const item = mShopItems->at(i); - if ((mShopItems && item && mPlayerMoney < item->getPrice() - && mPriceCheck) || PlayerInfo::isItemProtected(item->getId())) + if (item && ((mShopItems && mPlayerMoney < item->getPrice() + && mPriceCheck) || PlayerInfo::isItemProtected(item->getId()))) { if (i != mSelected) { |