diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-02 20:43:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-02 20:43:51 +0300 |
commit | 1b47ede798838c9f50ad3175c9d05e1dfbad2474 (patch) | |
tree | 00704042c47be966eee5c0f13079aa35d99adfaf /src/gui/windows/npcselldialog.cpp | |
parent | 914b7555f6b2b28497f70eaaadc6650961ef7f6b (diff) | |
download | plus-1b47ede798838c9f50ad3175c9d05e1dfbad2474.tar.gz plus-1b47ede798838c9f50ad3175c9d05e1dfbad2474.tar.bz2 plus-1b47ede798838c9f50ad3175c9d05e1dfbad2474.tar.xz plus-1b47ede798838c9f50ad3175c9d05e1dfbad2474.zip |
Add strong typed bool type Advanced.
Diffstat (limited to 'src/gui/windows/npcselldialog.cpp')
-rw-r--r-- | src/gui/windows/npcselldialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/npcselldialog.cpp b/src/gui/windows/npcselldialog.cpp index 98972ef8f..258487424 100644 --- a/src/gui/windows/npcselldialog.cpp +++ b/src/gui/windows/npcselldialog.cpp @@ -46,7 +46,8 @@ NpcSellDialog::NpcSellDialog(const BeingId npcId) : SellDialog(IsSell_true, - serverFeatures ? serverFeatures->haveAdvancedBuySell() : false), + (serverFeatures && serverFeatures->haveAdvancedBuySell()) ? + Advanced_true : Advanced_false), mNpcId(npcId) { } @@ -81,7 +82,7 @@ void NpcSellDialog::sellAction(const ActionEvent &event) } } - if (mAdvanced) + if (mAdvanced == Advanced_true) sellManyItems(event.getId()); else sellOneItem(); |