From f9d71155f40456efd6ec04f0e245d712fef617e1 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 13 Jul 2008 19:53:17 +0000 Subject: Fix the monster list not updating if no monsters are left, i.e. if you just killed the last one. (Whoops!) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6530 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/output.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref') 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 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 -- cgit v1.2.3-54-g00ecf