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 e2d8cb8..eb2a9b2 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