diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/shoplistbox.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp index 615b93010..827bb6755 100644 --- a/src/gui/widgets/shoplistbox.cpp +++ b/src/gui/widgets/shoplistbox.cpp @@ -24,6 +24,7 @@ #include "client.h" #include "configuration.h" +#include "playerinfo.h" #include "shopitem.h" #include "gui/itempopup.h" @@ -107,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) + if ((mShopItems && item && mPlayerMoney < item->getPrice() + && mPriceCheck) || PlayerInfo::isItemProtected(item->getId())) { if (i != mSelected) { |