diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-05 23:30:01 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-05 23:37:28 -0800 |
commit | d3c2214dea8cb19bcaa4dfe1303f0368e8cdf4aa (patch) | |
tree | a12096e5191629b8a6cb335aebdb4652491d6771 /crawl-ref/source/acr.cc | |
parent | d6874ba95d47b886b55d0e65310c837206246223 (diff) | |
download | crawl-ref-d3c2214dea8cb19bcaa4dfe1303f0368e8cdf4aa.tar.gz crawl-ref-d3c2214dea8cb19bcaa4dfe1303f0368e8cdf4aa.zip |
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.
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 |