diff options
Diffstat (limited to 'LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl')
-rw-r--r-- | LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl b/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl index a258fb8..d38843d 100644 --- a/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl +++ b/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl | |||
@@ -254,12 +254,10 @@ state load { | |||
254 | 254 | ||
255 | integer ix; | 255 | integer ix; |
256 | integer count; | 256 | integer count; |
257 | ix = myListFind(buttons, "-"); | 257 | while ((ix = myListFind(buttons, "-")) != -1) { |
258 | while (ix != -1) { | ||
259 | ++count; | 258 | ++count; |
260 | buttons = llDeleteSubList(buttons, ix, ix); | 259 | buttons = llDeleteSubList(buttons, ix, ix); |
261 | commands = llDeleteSubList(commands, ix, ix); | 260 | commands = llDeleteSubList(commands, ix, ix); |
262 | ix = myListFind(buttons, "-"); | ||
263 | } | 261 | } |
264 | if (count) { | 262 | if (count) { |
265 | for (ix = 1; ix < llGetListLength(buttonindex); ++ix) { | 263 | for (ix = 1; ix < llGetListLength(buttonindex); ++ix) { |