diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2006-11-05 20:20:33 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2006-11-05 20:20:33 +0000 |
commit | bda06fa4cfb5a3e45310317071f9608bea895e67 (patch) | |
tree | c22966a2dac2551db878f2a81a74a86182730a2d /src/gui/sell.cpp | |
parent | c17b9c5e3d6314b8740a5c46209719ef5d40f24a (diff) | |
download | mana-bda06fa4cfb5a3e45310317071f9608bea895e67.tar.gz mana-bda06fa4cfb5a3e45310317071f9608bea895e67.tar.bz2 mana-bda06fa4cfb5a3e45310317071f9608bea895e67.tar.xz mana-bda06fa4cfb5a3e45310317071f9608bea895e67.zip |
Fixes the money value after seling something.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 1 |
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); |