summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index a8320981b7..b33334fe2e 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -175,8 +175,9 @@ const int InvEntry::item_freshness() const
void InvEntry::select(int qty)
{
- if ( item && item->quantity < qty )
+ if (item && item->quantity < qty)
qty = item->quantity;
+
MenuEntry::select(qty);
}