diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f05aaa9..8892b69 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -8900,8 +8900,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8900 | int idx=0; | 8900 | int idx=0; |
8901 | while (idx < rules.Length) | 8901 | while (idx < rules.Length) |
8902 | { | 8902 | { |
8903 | int code=(int)rules.GetLSLIntegerItem(idx++); | 8903 | int code = (int)rules.GetLSLIntegerItem(idx++); |
8904 | int remain=rules.Length-idx; | 8904 | int remain = rules.Length - idx; |
8905 | 8905 | ||
8906 | switch (code) | 8906 | switch (code) |
8907 | { | 8907 | { |
@@ -8974,7 +8974,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8974 | break; | 8974 | break; |
8975 | 8975 | ||
8976 | case ScriptBaseClass.PRIM_TYPE_SCULPT: | 8976 | case ScriptBaseClass.PRIM_TYPE_SCULPT: |
8977 | res.Add(Shape.SculptTexture.ToString()); | 8977 | res.Add(new LSL_String(Shape.SculptTexture.ToString())); |
8978 | res.Add(new LSL_Integer(Shape.SculptType)); | 8978 | res.Add(new LSL_Integer(Shape.SculptType)); |
8979 | break; | 8979 | break; |
8980 | 8980 | ||
@@ -9316,7 +9316,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9316 | )); | 9316 | )); |
9317 | break; | 9317 | break; |
9318 | case (int)ScriptBaseClass.PRIM_LINK_TARGET: | 9318 | case (int)ScriptBaseClass.PRIM_LINK_TARGET: |
9319 | if(remain < 3) | 9319 | |
9320 | // TODO: Should be issuing a runtime script warning in this case. | ||
9321 | if (remain < 2) | ||
9320 | return null; | 9322 | return null; |
9321 | 9323 | ||
9322 | return rules.GetSublist(idx, -1); | 9324 | return rules.GetSublist(idx, -1); |