diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 |
1 files changed, 9 insertions, 1 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) |