From d3c2214dea8cb19bcaa4dfe1303f0368e8cdf4aa Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Thu, 5 Nov 2009 23:30:01 -0800 Subject: Error for non-monster spells in monster specs Give an error when parsing a monster spec if it lists a spell a monster can't cast, rather than causing an assertion when the monster tries to cast it. --- crawl-ref/source/acr.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 2a7ef4c6ee..4a020a2183 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -85,6 +85,7 @@ #include "message.h" #include "misc.h" #include "mon-act.h" +#include "mon-cast.h" #include "monplace.h" #include "monstuff.h" #include "mon-util.h" @@ -3533,6 +3534,7 @@ static bool _initialise(void) init_monster_symbols(); init_spell_descs(); // This needs to be way up top. {dlb} init_mon_name_cache(); + init_mons_spells(); // init_item_name_cache() needs to be redone after init_char_table() // and init_show_table() have been called, so that the glyphs will -- cgit v1.2.3-54-g00ecf