From 15c03ebb70cbc7874a152da04479d1a0c942ce9d Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Thu, 27 Dec 2018 18:47:59 -0800 Subject: [PATCH] Fix minor off-by-one bug in rename logic --- desktop/desktop_main.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/desktop_main.s b/desktop/desktop_main.s index 3050f61..c0ea108 100644 --- a/desktop/desktop_main.s +++ b/desktop/desktop_main.s @@ -2591,11 +2591,13 @@ L5403: jsr close_window finish_with_vols: ldx selected_vol_icon_count -: lda selected_vol_icon_list,x ; BUG: off by one? + jmp next_vol +: lda selected_vol_icon_list,x sta drive_to_refresh ; icon number jsr cmd_check_single_drive_by_icon_number ldx selected_vol_icon_count dec selected_vol_icon_count +next_vol: dex bpl :- jmp redraw_windows_and_desktop