summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-10 15:55:59 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-10 15:57:17 +0100
commit8622115c480ca062a75d1a9601fd307bed510d56 (patch)
treeac59856561e12383f78ac1b327befb1d9d6969e7 /crawl-ref/source/mon-util.cc
parent1ad8edc0408b587ad919f520cc1eae73b6d4cf3f (diff)
downloadcrawl-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.cc2
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]);