summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-08-09 22:54:16 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-08-10 16:42:58 +0200
commit40501e87a23ee80d3e948b9d9232e7fdcf46108f (patch)
tree22a508769cdbbe99f375ca5fd60c6fd6bc8b2120 /crawl-ref/source/invent.h
parent224edcce586cdb9ca41cadd76d54b5ac4b34a2cd (diff)
downloadcrawl-ref-40501e87a23ee80d3e948b9d9232e7fdcf46108f.tar.gz
crawl-ref-40501e87a23ee80d3e948b9d9232e7fdcf46108f.zip
Fix a std::string.c_str() going out of scope crash.
There's no point in using a std::string here at all.
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r--crawl-ref/source/invent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index d6dfeb042d..a5ee7be451 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -238,7 +238,7 @@ unsigned char get_invent(int invent_type);
bool in_inventory(const item_def &i);
std::string item_class_name(int type, bool terse = false);
-std::string item_slot_name(equipment_type type, bool terse);
+const char* item_slot_name(equipment_type type, bool terse);
bool check_old_item_warning(const item_def& item, operation_types oper);
bool check_warning_inscriptions(const item_def& item, operation_types oper);