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.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index e9d4cf07e9..6b680be9da 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -701,7 +701,9 @@ std::vector<SelItem> prompt_invent_items(
}
if (ret != PROMPT_ABORT)
- items.push_back( SelItem( ret, count ) );
+ items.push_back(
+ SelItem( ret, count,
+ ret != PROMPT_GOT_SPECIAL? &you.inv[ret] : NULL ) );
return items;
}