summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-04 21:12:31 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-04 22:48:12 +0100
commit24940bfaa94fd26d676a40d33c4d78438aa8315d (patch)
tree632c332fd317b7759a22448164e363d2a1422af8 /crawl-ref/source/makeitem.cc
parent64c38d95bfd6b24e34bc86f7d4ce7ba345c5a963 (diff)
downloadcrawl-ref-24940bfaa94fd26d676a40d33c4d78438aa8315d.tar.gz
crawl-ref-24940bfaa94fd26d676a40d33c4d78438aa8315d.zip
Fix is_armour_brand_ok: helmets can be int, only them can be see invis.
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 4c4cec2c2a..dcbc80dc61 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2273,11 +2273,11 @@ bool is_armour_brand_ok(int type, int brand)
return (slot == EQ_GLOVES);
case SPARM_INTELLIGENCE:
- if (type == ARM_HELMET)
- return (false);
- case SPARM_SEE_INVISIBLE:
return (slot == EQ_HELMET);
+ case SPARM_SEE_INVISIBLE:
+ return (type == ARM_HELMET);
+
case SPARM_FIRE_RESISTANCE:
case SPARM_COLD_RESISTANCE:
if (slot == EQ_BOOTS && type != ARM_BOOTS) // both bardings