aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-14 18:24:59 +1000
committerDavid Walter Seikel2014-05-14 18:24:59 +1000
commitad79a1e71dc203171f186c358f7d6acb38d42384 (patch)
tree7cb156fcde725170094152821c7f82a3cb1795db /lib
parentOops, fix up post increment. (diff)
downloadSledjHamr-ad79a1e71dc203171f186c358f7d6acb38d42384.zip
SledjHamr-ad79a1e71dc203171f186c358f7d6acb38d42384.tar.gz
SledjHamr-ad79a1e71dc203171f186c358f7d6acb38d42384.tar.bz2
SledjHamr-ad79a1e71dc203171f186c358f7d6acb38d42384.tar.xz
Fix up llListInsertList() and llListReplaceList().
Diffstat (limited to 'lib')
-rw-r--r--lib/LSL.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua
index ee7c5bc..cdb560b 100644
--- a/lib/LSL.lua
+++ b/lib/LSL.lua
@@ -654,7 +654,7 @@ function --[[list]] LSL.llListInsertList(--[[list]] l, --[[list]] l1,--[[integer
654 x = x + 1 654 x = x + 1
655 end 655 end
656 y = x 656 y = x
657 for i = 1,#ll do 657 for i = 1,#l1 do
658 result[x] = ll[i] 658 result[x] = ll[i]
659 x = x + 1 659 x = x + 1
660 end 660 end
@@ -669,7 +669,7 @@ function --[[list]] LSL.llListReplaceList(--[[list]] l, --[[list]] part,--[[inte
669 local result = {} 669 local result = {}
670 local x = 1 670 local x = 1
671 local y 671 local y
672 for i = 1,index do 672 for i = 1,start+1 do
673 result[x] = l[i] 673 result[x] = l[i]
674 x = x + 1 674 x = x + 1
675 end 675 end
@@ -677,7 +677,7 @@ function --[[list]] LSL.llListReplaceList(--[[list]] l, --[[list]] part,--[[inte
677 result[x] = part[i] 677 result[x] = part[i]
678 x = x + 1 678 x = x + 1
679 end 679 end
680 for i = index,#l do 680 for i = eNd+1,#l do
681 result[x] = l[i] 681 result[x] = l[i]
682 x = x + 1 682 x = x + 1
683 end 683 end