diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2006-11-05 02:36:13 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2006-11-05 02:36:13 +0000 |
commit | 4b8186327de88254d50a59eba0867d9a8590aaf2 (patch) | |
tree | 146fca1e90b8894c12b5e58d19d326a2fd5c0b4f /src/gui/shoplistbox.cpp | |
parent | 88c3ad6046582865fdc32df65aa5603b1048eba1 (diff) | |
download | mana-client-4b8186327de88254d50a59eba0867d9a8590aaf2.tar.gz mana-client-4b8186327de88254d50a59eba0867d9a8590aaf2.tar.bz2 mana-client-4b8186327de88254d50a59eba0867d9a8590aaf2.tar.xz mana-client-4b8186327de88254d50a59eba0867d9a8590aaf2.zip |
A final fix to secure the shoplistbox.
Diffstat (limited to 'src/gui/shoplistbox.cpp')
-rw-r--r-- | src/gui/shoplistbox.cpp | 2 |
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) { |