aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 3fbe257..8edd169 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3299,7 +3299,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3299 public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src) 3299 public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src)
3300 { 3300 {
3301 m_host.AddScriptLPS(1); 3301 m_host.AddScriptLPS(1);
3302 return src.Length; 3302
3303 if (src == null)
3304 {
3305 return 0;
3306 }
3307 else
3308 {
3309 return src.Length;
3310 }
3303 } 3311 }
3304 3312
3305 public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index) 3313 public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index)