shithub: puzzles

Download patch

ref: 8ad01fc6e78da7c907568266a6fb5c17b627af3b
parent: 734dc80c53592b83cd381addc46fd247317fe4e1
author: Simon Tatham <[email protected]>
date: Fri Sep 19 03:31:52 EDT 2008

Cut-and-paste error which was preventing any drop-down list in the
custom game configuration code from working in the Java applets.

[originally from svn r8192]

--- a/PuzzleApplet.java
+++ b/PuzzleApplet.java
@@ -604,7 +604,7 @@
                     break;
                 case C_CHOICES:
                     JComboBox jcm = (JComboBox)cc.component;
-                    runtimeCall("jcallback_config_set_boolean", new int[] {cc.configItemPointer, jcm.getSelectedIndex()});
+                    runtimeCall("jcallback_config_set_choice", new int[] {cc.configItemPointer, jcm.getSelectedIndex()});
                     break;
                 }
             }