summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-05-25 17:18:42 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-05-25 17:30:24 +0200
commit3995117a4f16f45c7854acf6e8ec461a4a35e09b (patch)
tree5f63a5000c9f51c6cdf4cde477fc2fda66de2bed /crawl-ref/source/itemname.h
parent851349c38e2fe0dfbfc97427c012b1ccdb7c2fa3 (diff)
downloadcrawl-ref-3995117a4f16f45c7854acf6e8ec461a4a35e09b.tar.gz
crawl-ref-3995117a4f16f45c7854acf6e8ec461a4a35e09b.zip
Remove magic number 50, subtype identification array size.
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r--crawl-ref/source/itemname.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index da0dd172c4..e187072e48 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -101,7 +101,8 @@ const char* armour_ego_name(const item_def& item, bool terse);
void init_properties();
-typedef FixedArray < item_type_id_state_type, NUM_IDTYPE, 50 > id_arr;
+const int NUM_ID_SUBTYPE = 50;
+typedef FixedArray<item_type_id_state_type, NUM_IDTYPE, NUM_ID_SUBTYPE> id_arr;
id_arr& get_typeid_array();
item_type_id_state_type get_ident_type(const item_def &item);