summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index a6a369e28..cc4cf4699 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -734,8 +734,16 @@ void BuyDialog::updateButtonsAndLabels()
else
mMaxItems = 1;
- if (item->getQuantity() > 0 && mMaxItems > item->getQuantity())
+ if (mNpcId == fromInt(Market, BeingId))
+ {
+ if (mMaxItems > item->getQuantity())
+ mMaxItems = item->getQuantity();
+ }
+ else if (item->getQuantity() > 0 &&
+ mMaxItems > item->getQuantity())
+ {
mMaxItems = item->getQuantity();
+ }
if (mAmountItems > mMaxItems)
mAmountItems = mMaxItems;