From c9a8a244cec31b825aeffce6a71e6d7d6db53336 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 28 Apr 2012 20:40:49 +0200 Subject: [PATCH] =?utf8?q?Fix=20a=20bug=20where=20=E2=80=9Cneed=20to=20qua?= =?utf8?q?lify=E2=80=9D=20would=20not=20be=20shown=20in=20the=20end=20game?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bigscreen/groupscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index 9f3b17c..090a766 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -534,7 +534,7 @@ void GroupScreen::draw_next_up_player(unsigned char *buf, const Group &group, co tmp.push_back(max_score[i]); } std::sort(tmp.begin(), tmp.end()); - if (tmp.size() > group.num_qualifying) { + if (tmp.size() >= group.num_qualifying) { qualify_beat_worst_case = tmp[tmp.size() - group.num_qualifying]; } else { qualify_beat_worst_case = 0; @@ -548,7 +548,7 @@ void GroupScreen::draw_next_up_player(unsigned char *buf, const Group &group, co } std::sort(tmp2.begin(), tmp2.end()); - if (tmp2.size() > group.num_qualifying) { + if (tmp2.size() >= group.num_qualifying) { qualify_beat_best_case = tmp2[tmp2.size() - group.num_qualifying]; } else { qualify_beat_best_case = 0; -- 2.39.2