diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-02 02:20:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-02 02:20:18 +0300 |
commit | 724b3475d546bea6698a0778490176cc49b995e9 (patch) | |
tree | fa5d48e8b3f63ff8e19a694141561ad9bf442ed1 /src/gui/windows/buydialog.cpp | |
parent | f273fca6e764ce7123d4ac0862bb0d5183c5eb01 (diff) | |
download | manaverse-724b3475d546bea6698a0778490176cc49b995e9.tar.gz manaverse-724b3475d546bea6698a0778490176cc49b995e9.tar.bz2 manaverse-724b3475d546bea6698a0778490176cc49b995e9.tar.xz manaverse-724b3475d546bea6698a0778490176cc49b995e9.zip |
Fix compilation without tmwa support.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 9 |
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); |