summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index dcac179e8b..fd0ead410b 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -355,11 +355,12 @@ std::string Stash::stash_item_name(const item_def &item)
{
char buf[ITEMNAME_SIZE];
+ // XXX XXX FIXME why the special-casing?
if (item.base_type == OBJ_GOLD)
snprintf(buf, sizeof buf, "%d gold piece%s", item.quantity,
(item.quantity > 1? "s" : ""));
else
- item_name(item, DESC_NOCAP_A, buf, false);
+ return item.name(DESC_NOCAP_A);
return buf;
}
@@ -658,7 +659,7 @@ std::string ShopInfo::shop_item_name(const shop_item &si) const
char shopitem[ITEMNAME_SIZE * 2];
std::string itemname = Stash::stash_item_name(si.item);
snprintf(shopitem, sizeof shopitem, "%s (%u gold)",
- itemname.c_str(), si.price);
+ itemname.c_str(), si.price);
return shopitem;
}