summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/enum.h1
-rw-r--r--crawl-ref/source/mon-util.cc3
2 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h
index d93fe664f2..6232299752 100644
--- a/crawl-ref/source/enum.h
+++ b/crawl-ref/source/enum.h
@@ -1263,6 +1263,7 @@ enum element_type
EC_RANDOM // any colour (except BLACK)
};
+// This list must match the enchant_names array in mon-util.cc
enum enchant_type
{
ENCH_NONE = 0, // 0
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index fe214c47fb..5b8a200e5f 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -4468,7 +4468,8 @@ static const char *enchant_names[] =
"none", "slow", "haste", "fear", "conf", "inv", "pois", "bers",
"rot", "summon", "abj", "backlit", "charm", "fire",
"gloshifter", "shifter", "tp", "wary", "submerged",
- "short lived", "paralysis", "sick", "sleep", "fatigue", "bug"
+ "short lived", "paralysis", "sick", "sleep", "fatigue", "held",
+ "bug"
};
const char *mons_enchantment_name(enchant_type ench)