mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Mantis#1714. Thank you kindly, Krtaylor for a patch that:
Solves llGetListLength fails scripts when list is not initialized.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user