From e92a750bc91d2ad7750d76a38df5e95d8ed011fb Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 14 May 2014 16:55:31 +1000 Subject: Fix llListSort(). That's what you get for mixing three different languages that don't agree an array origin. --- lib/LSL.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/LSL.lua b/lib/LSL.lua index fe5c349..ee7c5bc 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua @@ -686,7 +686,7 @@ end function --[[list]] LSL.llListSort(--[[list]] l,--[[integer]] stride,--[[integer]] ascending) local result = {} - local x = 0 + local x = 1 -- TODO - Deal with stride and ascending. for i = 1,#l do @@ -806,7 +806,6 @@ function waitAndProcess(returnWanted) return result1 end -- Otherwise, just run it and keep looping. --- print("RUNNING " .. result1) -- TODO - Not sure why I had this here. "sid" is not set anywhere, and SID would just send it to ourselves. -- status, errorMsg = luaproc.send(sid, result1) -- if not status then @@ -910,7 +909,6 @@ function LSL.listConcat(a, b) local result = a table.insert(result, i + 1, b) - return result; end -- cgit v1.1