From 9fafcb9332b7293eb640e9c488328c07ba284d72 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 4 Feb 2012 10:42:37 +1000 Subject: Restore this thing so I can debug it now. --- LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl') 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 { integer ix; integer count; - ix = myListFind(buttons, "-"); - while (ix != -1) { + while ((ix = myListFind(buttons, "-")) != -1) { ++count; buttons = llDeleteSubList(buttons, ix, ix); commands = llDeleteSubList(commands, ix, ix); - ix = myListFind(buttons, "-"); } if (count) { for (ix = 1; ix < llGetListLength(buttonindex); ++ix) { -- cgit v1.1