]> git.decadent.org.uk Git - videolink.git/commitdiff
Corrected off-by-one error in use of target button numbers.
authorBen Hutchings <ben@decadent.org.uk>
Sat, 24 Dec 2005 23:52:12 +0000 (23:52 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 23:39:55 +0000 (23:39 +0000)
webdvd.cpp

index e2d8cb87425867a969e293e08c95e53a306ad598..eb2a9b2743d28a2a59bdd369af6ab072c25ae16f 100644 (file)
@@ -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