diff options
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 06d048d4a2..0b96e69de2 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -710,7 +710,7 @@ int get_ammo_brand( const item_def &item ) return (item.special); } -int get_armour_ego_type( const item_def &item ) +special_armour_type get_armour_ego_type( const item_def &item ) { // artefact armours have no ego type, must look up powers separately if (item.base_type != OBJ_ARMOUR @@ -719,7 +719,7 @@ int get_armour_ego_type( const item_def &item ) return (SPARM_NORMAL); } - return (item.special); + return (static_cast<special_armour_type>(item.special)); } // |