diff options
author | David Walter Seikel | 2014-05-14 14:34:25 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-14 14:34:25 +1000 |
commit | ea34ee6d6164f5e5f8402786cc9df2b08fd1e791 (patch) | |
tree | f4ebe6931c4dcabffe33c90d0e363040a4a3eaba /lib | |
parent | Actually implement LSL script resetting, and some associated fixes. (diff) | |
download | SledjHamr-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.lua | 4 |
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 | ||
687 | function --[[list]] LSL.llListSort(--[[list]] l,--[[integer]] stride,--[[integer]] ascending) | 687 | function --[[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 | ||