summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-12-30 15:16:46 -0800
committerStefan O'Rear <stefanor@cox.net>2009-12-30 15:16:46 -0800
commitd795dad2a730ac62f51b1c8a81479bfcfe09c873 (patch)
tree033a49000cd193249ea4a3673d218f9d704979ae /crawl-ref/source/mon-util.cc
parent03198aca0dd95ee031adbda1bef852ec49c0ca3b (diff)
downloadcrawl-ref-d795dad2a730ac62f51b1c8a81479bfcfe09c873.tar.gz
crawl-ref-d795dad2a730ac62f51b1c8a81479bfcfe09c873.zip
Fix obviously broken code in has_los_spell
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index fa2ce2be15..d148495560 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -2576,7 +2576,7 @@ static bool _ms_los_spell(spell_type monspell)
// True, the tentacles _are_ summoned, but they are restricted to
// water just like the kraken is, so it makes more sense not to
// count them here.
- if (SPELL_KRAKEN_TENTACLES)
+ if (monspell == SPELL_KRAKEN_TENTACLES)
return (false);
if (monspell == SPELL_SMITING