summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-05-20 14:28:48 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-05-20 14:28:48 +0000
commit8b41ae72ae2733fc8bf33627698c75d9a79e1d7b (patch)
treeffcdb0a1f2d4faea1ed974fad6f0cf6f3f19d13b /src/gui/buy.cpp
parentc25caff529473e933d7a2a795d5ed520a52961b0 (diff)
downloadmana-client-8b41ae72ae2733fc8bf33627698c75d9a79e1d7b.tar.gz
mana-client-8b41ae72ae2733fc8bf33627698c75d9a79e1d7b.tar.bz2
mana-client-8b41ae72ae2733fc8bf33627698c75d9a79e1d7b.tar.xz
mana-client-8b41ae72ae2733fc8bf33627698c75d9a79e1d7b.zip
Fixed the amount-not-reset-when-using-scrollwheel bug in sell dialog.
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index a8a1ea7e..8b9e8d8e 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -230,7 +230,7 @@ void BuyDialog::action(const gcn::ActionEvent &event)
int price = mAmountItems * mShopItems->at(selectedItem).price;
mMoneyLabel->setCaption("Price: " + toString(price) + " GP / "
- + toString(mMoney) + " GP" );
+ + toString(mMoney - price) + " GP" );
mMoneyLabel->adjustSize();
}
}