diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-05-25 17:18:42 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-05-25 17:30:24 +0200 |
commit | 3995117a4f16f45c7854acf6e8ec461a4a35e09b (patch) | |
tree | 5f63a5000c9f51c6cdf4cde477fc2fda66de2bed /crawl-ref/source/itemname.h | |
parent | 851349c38e2fe0dfbfc97427c012b1ccdb7c2fa3 (diff) | |
download | crawl-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.h | 3 |
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); |