From 1b47ede798838c9f50ad3175c9d05e1dfbad2474 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Dec 2015 20:43:51 +0300 Subject: Add strong typed bool type Advanced. --- src/gui/windows/npcselldialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/npcselldialog.cpp') 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(); -- cgit v1.2.3-70-g09d2