summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcselldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/npcselldialog.cpp')
-rw-r--r--src/gui/windows/npcselldialog.cpp5
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();