From ba894de3014f02d0c6889b5e2df821b97a265bdb Mon Sep 17 00:00:00 2001
From: David Walter Seikel
Date: Fri, 3 Feb 2012 22:36:25 +1000
Subject: Assignments in the middle of expressions is legal in LSL, but not in
 Lua.  Bump that problem until later.

---
 LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'LuaSL/Test sim')

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 d38843d..a258fb8 100644
--- a/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl	
+++ b/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl	
@@ -254,10 +254,12 @@ state load {
 
         integer ix;
         integer count;
-        while ((ix = myListFind(buttons, "-")) != -1) {
+        ix = myListFind(buttons, "-");
+        while (ix != -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