summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-06-20 18:15:06 -0400
committerNeil Moore <neil@s-z.org>2014-06-20 18:16:29 -0400
commitec188f0e1352f9c1804731901a108c9d28cd4ec4 (patch)
treedf6def700598d7908faa757a63bd217f7b61746e /crawl-ref/source/view.cc
parentd490d05e1d85a69937af3c4ecc4076b9b029795d (diff)
downloadcrawl-ref-ec188f0e1352f9c1804731901a108c9d28cd4ec4.tar.gz
crawl-ref-ec188f0e1352f9c1804731901a108c9d28cd4ec4.zip
Assert rather than segfault in #8717
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 7b4a2cc08b..ab3ca629b6 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -634,6 +634,7 @@ void fully_map_level()
// Is the given monster near (in LOS of) the player?
bool mons_near(const monster* mons)
{
+ ASSERT(mons);
if (crawl_state.game_is_arena() || crawl_state.arena_suspended)
return true;
return you.see_cell(mons->pos());