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,8 +3355,16 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (src == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return src.Length;
|
||||
}
|
||||
}
|
||||
|
||||
public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index)
|
||||
{
|
||||
|
|
|
@ -3299,8 +3299,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
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