From d12226d4cb92cdc7d85df82303ef2695f774a42d Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Mon, 19 Dec 2005 03:44:14 +0000 Subject: [PATCH] Fix a problem with my rewrite of scroll_menu where selecting an item on a main menu selects the next item instead. --- src/bfu/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bfu/menu.c b/src/bfu/menu.c index 74241d93d..1b25f1cf1 100644 --- a/src/bfu/menu.c +++ b/src/bfu/menu.c @@ -270,7 +270,7 @@ no_item: start = pos = menu->selected; - if (!steps) steps = 1; + if (!steps) steps = 1, --pos; while (steps) { pos += s, steps -= s;