Showing 1 changed files with 1 additions and 3 deletions
+1 -3
Nasal/knobs.nas
... ...
@@ -74,9 +74,7 @@ var knobsClass = {
74 74
                 return;
75 75
             forindex (var c; object.choices)
76 76
                 if (object.choices[c] == val) {
77
-                    if (c == size(object.choices) - 1) val = object.choices[0];
78
-                    else val = object.choices[c + 1];
79
-
77
+                    val = object.choices[c + d];
80 78
                     me.device.windows.window[me.device.windows.selected]
81 79
                         .setText(val);
82 80
                     object.text = val;