From: Ben Hutchings Date: Sat, 24 Dec 2005 23:52:12 +0000 (+0000) Subject: Corrected off-by-one error in use of target button numbers. X-Git-Tag: 0.6~4 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=commitdiff_plain;h=f95a8047fecc9bdde132b6b91a8c531febaefa65;ds=sidebyside Corrected off-by-one error in use of target button numbers. --- diff --git a/webdvd.cpp b/webdvd.cpp index e2d8cb8..eb2a9b2 100644 --- a/webdvd.cpp +++ b/webdvd.cpp @@ -965,11 +965,12 @@ namespace && (target_menu_entries[--target_button_num] != this_pgc)) ; + target_button_num += 1; } file << "g1 = " << (1 + target.index - + (1 + target_button_num) * button_mult) + + target_button_num * button_mult) << "; jump menu " << 1 + target.index << ";"; } else