summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 19a2d3b747..34ee576593 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -726,7 +726,7 @@ bool do_wear_armour( int item, bool quiet )
return (false);
}
- const int base_type = you.inv[item].base_type;
+ const object_class_type base_type = you.inv[item].base_type;
if (base_type != OBJ_ARMOUR)
{
if (!quiet)
@@ -884,8 +884,8 @@ bool do_wear_armour( int item, bool quiet )
if (slot == EQ_BODY_ARMOUR
&& you.equip[EQ_CLOAK] != -1 && !cloak_is_being_removed())
{
- if ( you.equip[EQ_BODY_ARMOUR] &&
- item_cursed(you.inv[you.equip[EQ_BODY_ARMOUR]]) )
+ if (you.equip[EQ_BODY_ARMOUR] != -1 &&
+ item_cursed(you.inv[you.equip[EQ_BODY_ARMOUR]]) )
{
if ( !quiet )
mprf("%s is stuck to your body!",