summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-11-05 02:36:13 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-11-05 02:36:13 +0000
commit4b8186327de88254d50a59eba0867d9a8590aaf2 (patch)
tree146fca1e90b8894c12b5e58d19d326a2fd5c0b4f /src
parent88c3ad6046582865fdc32df65aa5603b1048eba1 (diff)
downloadmana-4b8186327de88254d50a59eba0867d9a8590aaf2.tar.gz
mana-4b8186327de88254d50a59eba0867d9a8590aaf2.tar.bz2
mana-4b8186327de88254d50a59eba0867d9a8590aaf2.tar.xz
mana-4b8186327de88254d50a59eba0867d9a8590aaf2.zip
A final fix to secure the shoplistbox.
Diffstat (limited to 'src')
-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)
{