aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-14 14:34:25 +1000
committerDavid Walter Seikel2014-05-14 14:34:25 +1000
commitea34ee6d6164f5e5f8402786cc9df2b08fd1e791 (patch)
treef4ebe6931c4dcabffe33c90d0e363040a4a3eaba /lib
parentActually implement LSL script resetting, and some associated fixes. (diff)
downloadSledjHamr-ea34ee6d6164f5e5f8402786cc9df2b08fd1e791.zip
SledjHamr-ea34ee6d6164f5e5f8402786cc9df2b08fd1e791.tar.gz
SledjHamr-ea34ee6d6164f5e5f8402786cc9df2b08fd1e791.tar.bz2
SledjHamr-ea34ee6d6164f5e5f8402786cc9df2b08fd1e791.tar.xz
Fix llListSort.
Diffstat (limited to 'lib')
-rw-r--r--lib/LSL.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua
index 6d84f90..07c8b30 100644
--- a/lib/LSL.lua
+++ b/lib/LSL.lua
@@ -686,10 +686,12 @@ end
686 686
687function --[[list]] LSL.llListSort(--[[list]] l,--[[integer]] stride,--[[integer]] ascending) 687function --[[list]] LSL.llListSort(--[[list]] l,--[[integer]] stride,--[[integer]] ascending)
688 local result = {} 688 local result = {}
689 local x = 0
689 690
690 -- TODO - Deal with stride and ascending. 691 -- TODO - Deal with stride and ascending.
691 for i = 1,#l do 692 for i = 1,#l do
692 result[x] = l[i]; x = x + 1 693 result[x] = l[i];
694 x = x + 1
693 end 695 end
694 table.sort(result) 696 table.sort(result)
695 697