summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index 9886c334fa..4f892d6f4e 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -529,7 +529,7 @@ int apply_random_around_square(cell_func cf, const coord_def& where,
for (adjacent_iterator ai(where, exclude_center); ai; ++ai)
{
- if (mgrd(*ai) == NON_MONSTER && *ai != you.pos())
+ if (monster_at(*ai) == NULL && *ai != you.pos())
continue;
// Found target