summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 30c4957f9a..157547eb5f 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -927,7 +927,7 @@ bool recall(char type_recalled)
if (!mons_friendly(monster))
continue;
- if (monster_habitat(monster->type) != DNGN_FLOOR)
+ if (!monster_habitable_grid(monster, DNGN_FLOOR))
continue;
if (type_recalled == 1)