Mantis#1714. Thank you kindly, Krtaylor for a patch that:
Solves llGetListLength fails scripts when list is not initialized.0.6.0-stable
parent
bdec1aea92
commit
132b95ec95
|
@ -3355,7 +3355,15 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
return src.Length;
|
||||
|
||||
if (src == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return src.Length;
|
||||
}
|
||||
}
|
||||
|
||||
public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index)
|
||||
|
|
|
@ -3299,7 +3299,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
return src.Length;
|
||||
|
||||
if (src == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return src.Length;
|
||||
}
|
||||
}
|
||||
|
||||
public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index)
|
||||
|
|
Loading…
Reference in New Issue