diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-10 15:55:59 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-10 15:57:17 +0100 |
commit | 8622115c480ca062a75d1a9601fd307bed510d56 (patch) | |
tree | ac59856561e12383f78ac1b327befb1d9d6969e7 /crawl-ref/source/mon-util.cc | |
parent | 1ad8edc0408b587ad919f520cc1eae73b6d4cf3f (diff) | |
download | crawl-ref-8622115c480ca062a75d1a9601fd307bed510d56.tar.gz crawl-ref-8622115c480ca062a75d1a9601fd307bed510d56.zip |
Fix monsters with static spellbooks not getting any spells.
Praise be to 'git bisect'!
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 2366ebe00b..a65be33321 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1561,6 +1561,8 @@ void define_monster(monsters &mons) while (spells == MST_NO_SPELLS); } } + else + spells = m->sec; // Some calculations. hp = hit_points(hd, m->hpdice[1], m->hpdice[2]); |