summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/buydialog.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index df478891c..d2c4e3a6a 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -277,11 +277,11 @@ void BuyDialog::init()
setDefaultSize(260, 230, ImagePosition::CENTER);
// reset advance flag for personal shops and cash shop
- if (mAdvanced && (
+ if (mAdvanced &&
#ifdef TMWA_SUPPORT
- mNpcId == fromInt(Nick, BeingId) ||
+ mNpcId == fromInt(Nick, BeingId)
#endif // TMWA_SUPPORT
- mNpcId == fromInt(Cash, BeingId)))
+ )
{
mAdvanced = false;
}
@@ -653,6 +653,10 @@ void BuyDialog::action(const ActionEvent &event)
items);
}
}
+ else if (mNpcId == fromInt(Cash, BeingId))
+ {
+ cashShopHandler->buyItems(0, items);
+ }
else
{
npcHandler->buyItems(items);