From 724b3475d546bea6698a0778490176cc49b995e9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Feb 2017 02:20:18 +0300 Subject: Fix compilation without tmwa support. --- src/gui/windows/buydialog.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-60-g2f50