summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-11-05 20:20:33 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-11-05 20:20:33 +0000
commitbda06fa4cfb5a3e45310317071f9608bea895e67 (patch)
treec22966a2dac2551db878f2a81a74a86182730a2d /src/gui
parentc17b9c5e3d6314b8740a5c46209719ef5d40f24a (diff)
downloadmana-client-bda06fa4cfb5a3e45310317071f9608bea895e67.tar.gz
mana-client-bda06fa4cfb5a3e45310317071f9608bea895e67.tar.bz2
mana-client-bda06fa4cfb5a3e45310317071f9608bea895e67.tar.xz
mana-client-bda06fa4cfb5a3e45310317071f9608bea895e67.zip
Fixes the money value after seling something.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/sell.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index 7f50c1e4..f32b4b5c 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -234,6 +234,7 @@ void SellDialog::action(const std::string& eventId, gcn::Widget* widget)
mMaxItems -= mAmountItems;
mShopItems->getShop()->at(selectedItem).quantity = mMaxItems;
+ mPlayerMoney += (mAmountItems * mShopItems->at(selectedItem).price);
mAmountItems = 0;
mSlider->setValue(0);
mSlider->setEnabled(mMaxItems != 0);