diff options
author | Neil Moore <neil@s-z.org> | 2014-06-20 18:15:06 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-06-20 18:16:29 -0400 |
commit | ec188f0e1352f9c1804731901a108c9d28cd4ec4 (patch) | |
tree | df6def700598d7908faa757a63bd217f7b61746e /crawl-ref/source/view.cc | |
parent | d490d05e1d85a69937af3c4ecc4076b9b029795d (diff) | |
download | crawl-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.cc | 1 |
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()); |