diff options
author | Charles Krinke | 2008-07-12 17:11:43 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-12 17:11:43 +0000 |
commit | 132b95ec95f209b8b2ba5842ae03baf870cef6d1 (patch) | |
tree | e3bc1be9d48e492f5dc83680649498087107fe1c /OpenSim/Region/ScriptEngine/Shared | |
parent | Mantis#1716. Thank you kindly, Nlin for a patch that: (diff) | |
download | opensim-SC_OLD-132b95ec95f209b8b2ba5842ae03baf870cef6d1.zip opensim-SC_OLD-132b95ec95f209b8b2ba5842ae03baf870cef6d1.tar.gz opensim-SC_OLD-132b95ec95f209b8b2ba5842ae03baf870cef6d1.tar.bz2 opensim-SC_OLD-132b95ec95f209b8b2ba5842ae03baf870cef6d1.tar.xz |
Mantis#1714. Thank you kindly, Krtaylor for a patch that:
Solves llGetListLength fails scripts when list is not initialized.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 |
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) |