Fix nullref in cmGetAvatarList() (ported from 0.69)

avinationmerge
Tom Grimshaw 2010-06-01 13:29:12 -07:00
parent 6668c789d3
commit 90c814a7ca
1 changed files with 6 additions and 3 deletions

View File

@ -124,12 +124,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (avatar != null && avatar.UUID != m_host.OwnerID)
{
if (avatar.IsChildAgent == false)
{
if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null)
{
result.Add(avatar.UUID);
result.Add(avatar.PhysicsActor.Position);
result.Add(avatar.Name);
}
}
}
});
return result;
}