summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/shoplistbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/shoplistbox.cpp b/src/gui/shoplistbox.cpp
index 6ddf863e..61abff35 100644
--- a/src/gui/shoplistbox.cpp
+++ b/src/gui/shoplistbox.cpp
@@ -74,7 +74,7 @@ void ShopListBox::draw(gcn::Graphics *graphics)
for (int i = 0, y = 0; i < mListModel->getNumberOfElements(); ++i, y += mRowHeight)
{
graphics->setColor(gcn::Color(0xffffff));
- if (mShopItems)
+ if (mShopItems != NULL)
{
if(mPlayerMoney < mShopItems->at(i).price && mPriceCheck)
{