summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 22a9e1a186..b9ebfd1c6a 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -1500,6 +1500,9 @@ void get_monster_pane_info(std::vector<monster_pane_info>& mons)
// they have to be consolidated, and 1 otherwise.
int update_monster_pane()
{
+ if (!map_bounds(you.pos()))
+ return (-1);
+
const int max_print = crawl_view.mlistsz.y;
textbackground(BLACK);