aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorSnowcrash2009-10-19 13:03:14 +0200
committerdahlia2009-10-20 02:09:24 -0700
commit182693628ca1b81c90f3f0296418437eda406bb5 (patch)
treec380fc92640f9cb50eb0dac7be8931fd6c90ecea /OpenSim
parentMinor formatting cleanup. (diff)
downloadopensim-SC_OLD-182693628ca1b81c90f3f0296418437eda406bb5.zip
opensim-SC_OLD-182693628ca1b81c90f3f0296418437eda406bb5.tar.gz
opensim-SC_OLD-182693628ca1b81c90f3f0296418437eda406bb5.tar.bz2
opensim-SC_OLD-182693628ca1b81c90f3f0296418437eda406bb5.tar.xz
Fix for index error in llList2String
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index e10e612..224b3cc 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4660,7 +4660,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4660 { 4660 {
4661 index = src.Length + index; 4661 index = src.Length + index;
4662 } 4662 }
4663 if (index >= src.Length) 4663 if (index >= src.Length || index < 0)
4664 { 4664 {
4665 return 0; 4665 return 0;
4666 } 4666 }
@@ -4685,7 +4685,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4685 { 4685 {
4686 index = src.Length + index; 4686 index = src.Length + index;
4687 } 4687 }
4688 if (index >= src.Length) 4688 if (index >= src.Length || index < 0)
4689 { 4689 {
4690 return 0.0; 4690 return 0.0;
4691 } 4691 }
@@ -4712,7 +4712,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4712 { 4712 {
4713 index = src.Length + index; 4713 index = src.Length + index;
4714 } 4714 }
4715 if (index >= src.Length) 4715 if (index >= src.Length || index < 0)
4716 { 4716 {
4717 return String.Empty; 4717 return String.Empty;
4718 } 4718 }
@@ -4726,7 +4726,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4726 { 4726 {
4727 index = src.Length + index; 4727 index = src.Length + index;
4728 } 4728 }
4729 if (index >= src.Length) 4729 if (index >= src.Length || index < 0)
4730 { 4730 {
4731 return ""; 4731 return "";
4732 } 4732 }
@@ -4740,7 +4740,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4740 { 4740 {
4741 index = src.Length + index; 4741 index = src.Length + index;
4742 } 4742 }
4743 if (index >= src.Length) 4743 if (index >= src.Length || index < 0)
4744 { 4744 {
4745 return new LSL_Vector(0, 0, 0); 4745 return new LSL_Vector(0, 0, 0);
4746 } 4746 }
@@ -4761,7 +4761,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4761 { 4761 {
4762 index = src.Length + index; 4762 index = src.Length + index;
4763 } 4763 }
4764 if (index >= src.Length) 4764 if (index >= src.Length || index < 0)
4765 { 4765 {
4766 return new LSL_Rotation(0, 0, 0, 1); 4766 return new LSL_Rotation(0, 0, 0, 1);
4767 } 4767 }