summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-16 14:57:39 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-16 14:57:39 +0000
commitc66ef96bf763d7754aa62ffab3739880b0a646a8 (patch)
tree18469a44d0a4101da20b5e4cc11b915c6cf0c0bd /crawl-ref/source/clua.cc
parente00f724da44a0ea837a90acb7b805f4247918dc1 (diff)
downloadcrawl-ref-c66ef96bf763d7754aa62ffab3739880b0a646a8.tar.gz
crawl-ref-c66ef96bf763d7754aa62ffab3739880b0a646a8.zip
Fix assert triggered when ziggurat levels are generated (syllogism).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10687 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index e4ded572b4..5e4a6965dd 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -2533,13 +2533,13 @@ MDEF(hd)
static const char *_monuse_names[] =
{
- "nothing", "eats_items", "open_doors", "starting_equipment",
+ "nothing", "open_doors", "starting_equipment",
"weapons_armour", "magic_items"
};
static const char *_monuse_to_str(mon_itemuse_type ityp)
{
- ASSERT(ARRAYSZ(_monuse_names) == NUM_MONUSE);
+ COMPILE_CHECK(ARRAYSZ(_monuse_names) == NUM_MONUSE, c1);
return _monuse_names[ityp];
}