summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-29 23:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-29 23:24:52 +0300
commitc7c6894dcede6778f311171f1128024b5ba97d84 (patch)
tree4cd017cc9e96d2532862c18583dda05c53b46bbc /src/gui
parentb6bdc6a3406e4171b3e46c3735b7801edd27dd67 (diff)
downloadmanaverse-c7c6894dcede6778f311171f1128024b5ba97d84.tar.gz
manaverse-c7c6894dcede6778f311171f1128024b5ba97d84.tar.bz2
manaverse-c7c6894dcede6778f311171f1128024b5ba97d84.tar.xz
manaverse-c7c6894dcede6778f311171f1128024b5ba97d84.zip
fix working with protected items by automatic checks.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/shoplistbox.cpp4
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)
{