summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-02 02:20:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-02 02:20:18 +0300
commit724b3475d546bea6698a0778490176cc49b995e9 (patch)
treefa5d48e8b3f63ff8e19a694141561ad9bf442ed1 /src/gui/windows
parentf273fca6e764ce7123d4ac0862bb0d5183c5eb01 (diff)
downloadmanaplus-724b3475d546bea6698a0778490176cc49b995e9.tar.gz
manaplus-724b3475d546bea6698a0778490176cc49b995e9.tar.bz2
manaplus-724b3475d546bea6698a0778490176cc49b995e9.tar.xz
manaplus-724b3475d546bea6698a0778490176cc49b995e9.zip
Fix compilation without tmwa support.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/buydialog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index 797edd1ab..a0ec8d05c 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -284,15 +284,14 @@ void BuyDialog::init()
setMinHeight(220);
setDefaultSize(260, 230, ImagePosition::CENTER);
- // reset advance flag for personal shops and cash shop
- if (mAdvanced &&
#ifdef TMWA_SUPPORT
- mNpcId == fromInt(Nick, BeingId)
-#endif // TMWA_SUPPORT
- )
+ // reset advance flag for personal shops
+ if (mAdvanced &&
+ mNpcId == fromInt(Nick, BeingId))
{
mAdvanced = false;
}
+#endif // TMWA_SUPPORT
if (setupWindow)
setupWindow->registerWindowForReset(this);