summaryrefslogtreecommitdiff
path: root/src/gui/windows/selldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-13 20:33:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-13 20:33:37 +0300
commit5ae6d3b29f93fe2bd7222eb843c8688561ac612c (patch)
treebb531156ba9adb428fea2fae5b97f94d3198d70d /src/gui/windows/selldialog.cpp
parent938bda786f0fe21c37a222f1ff1dfff7fcdcb538 (diff)
downloadmv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.tar.gz
mv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.tar.bz2
mv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.tar.xz
mv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.zip
improve variables order in windows.
Diffstat (limited to 'src/gui/windows/selldialog.cpp')
-rw-r--r--src/gui/windows/selldialog.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp
index 7cd6fd49f..ebee65d1e 100644
--- a/src/gui/windows/selldialog.cpp
+++ b/src/gui/windows/selldialog.cpp
@@ -56,7 +56,11 @@ SellDialog::SellDialog(const int npcId) :
Window(_("Sell"), false, nullptr, "sell.xml"),
ActionListener(),
SelectionListener(),
- mNpcId(npcId), mMaxItems(0), mAmountItems(0), mNick("")
+ mNick(""),
+ mNpcId(npcId),
+ mPlayerMoney(0),
+ mMaxItems(0),
+ mAmountItems(0)
{
init();
}
@@ -66,7 +70,11 @@ SellDialog::SellDialog(const std::string &nick):
Window(_("Sell"), false, nullptr, "sell.xml"),
ActionListener(),
SelectionListener(),
- mNpcId(-1), mMaxItems(0), mAmountItems(0), mNick(nick)
+ mNick(nick),
+ mNpcId(-1),
+ mPlayerMoney(0),
+ mMaxItems(0),
+ mAmountItems(0)
{
init();
}