From 0a577362dfe772e6e13eebce39489327b282c98d Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 13 Apr 2007 07:40:38 +0000 Subject: Cleaned up some of the randart code. Fixed a free-without-malloc security issue (of art_n.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1291 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/itemprop.h') diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index 9e5428106e..897eb3ef28 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -145,4 +145,8 @@ bool is_shield(const item_def &item); bool is_shield_incompatible(const item_def &weapon, const item_def *shield = NULL); +// Only works for armour/weapons/missiles +const char* item_base_name(const item_def &item); +const char* item_base_name(object_class_type basetype, unsigned char subtype); + #endif -- cgit v1.2.3-54-g00ecf