From e334caab9bb76844c5ffb00bb0365cb59b264466 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 24 Jan 2010 08:45:25 +0000 Subject: [PATCH] Fix highlighting bug --- menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index 973d745..6ccb24f 100644 --- a/menu.cpp +++ b/menu.cpp @@ -93,7 +93,7 @@ void Menu::draw(SDL_Surface *where, int x, int y, int w, int h) entries_visible = this->n_entries - start_entry_visible; for (int i = start_entry_visible; - i < start_entry_visible + entries_visible; i++) + i <= start_entry_visible + entries_visible; i++) { const char *msg = this->pp_msgs[i]; int cur_y;