diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 8ae2456..53d1209 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -3355,7 +3355,15 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3355 | public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src) | 3355 | public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src) |
3356 | { | 3356 | { |
3357 | m_host.AddScriptLPS(1); | 3357 | m_host.AddScriptLPS(1); |
3358 | return src.Length; | 3358 | |
3359 | if (src == null) | ||
3360 | { | ||
3361 | return 0; | ||
3362 | } | ||
3363 | else | ||
3364 | { | ||
3365 | return src.Length; | ||
3366 | } | ||
3359 | } | 3367 | } |
3360 | 3368 | ||
3361 | public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index) | 3369 | public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index) |
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) |