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.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index a162edfcfc..8c7fdaf49d 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -1489,9 +1489,6 @@ int update_monster_pane()
std::vector<monster_pane_info> mons;
get_monster_pane_info(mons);
- if (mons.empty())
- return (-1);
-
std::sort(mons.begin(), mons.end(), monster_pane_info::less_than);
// Count how many groups of monsters there are
@@ -1547,6 +1544,9 @@ int update_monster_pane()
cprintf(" ... ");
}
+ if (mons.empty())
+ return (-1);
+
return full_info;
}
#else