summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-11-05 00:28:55 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-11-05 00:28:55 +0000
commit502af71c74d0b1d5b123d424bc023fcce49916ec (patch)
tree43e6ec1fb1ab283b8cdd7f1c394bcfb7939c1861 /src/gui/sell.cpp
parent0c85783de45e334f9e116360fec0ae19dccab085 (diff)
downloadmana-client-502af71c74d0b1d5b123d424bc023fcce49916ec.tar.gz
mana-client-502af71c74d0b1d5b123d424bc023fcce49916ec.tar.bz2
mana-client-502af71c74d0b1d5b123d424bc023fcce49916ec.tar.xz
mana-client-502af71c74d0b1d5b123d424bc023fcce49916ec.zip
Added pictures to items in buy dialogs. Also too expensive items are highlighted in gray and can't be selected.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r--src/gui/sell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index cc43d36c..92669ab6 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -185,7 +185,7 @@ void SellDialog::action(const std::string& eventId, gcn::Widget* widget)
}
// The following actions require a valid item selection
- if (selectedItem == -1 || selectedItem >= int(mShopItems->size())) {
+ if (selectedItem == -1 || selectedItem >= int(mShopItems->getNumberOfElements())) {
return;
}
@@ -233,7 +233,7 @@ void SellDialog::action(const std::string& eventId, gcn::Widget* widget)
// All were sold
if (!mMaxItems) {
mItemList->setSelected(-1);
- mShopItems->erase(mShopItems->begin() + selectedItem);
+ mShopItems->mItemsShop.erase(mShopItems->mItemsShop.begin() + selectedItem);
}
// Update only when there are items left, the entry doesn't exist