diff options
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index a518f8970e..b1420070d0 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -408,6 +408,12 @@ static food_def Food_prop[NUM_FOODS] = // be accessed correctly. void init_properties() { + // compare with enum comments, to catch changes + COMPILE_CHECK(NUM_ARMOURS == 37, c1); + COMPILE_CHECK(NUM_WEAPONS == 48, c2); + COMPILE_CHECK(NUM_MISSILES == 9, c3); + COMPILE_CHECK(NUM_FOODS == 22, c4); + int i; for (i = 0; i < NUM_ARMOURS; i++) |