Gosh, fixing another nullref issue in cmGetAvatarList. I deserve spanks.
parent
0526a91206
commit
0209033dd9
|
@ -98,9 +98,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
if (avatar.IsChildAgent == false)
|
if (avatar.IsChildAgent == false)
|
||||||
{
|
{
|
||||||
result.Add(avatar.UUID);
|
if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null)
|
||||||
result.Add(avatar.PhysicsActor.Position);
|
{
|
||||||
result.Add(avatar.Name);
|
result.Add(avatar.UUID);
|
||||||
|
result.Add(avatar.PhysicsActor.Position);
|
||||||
|
result.Add(avatar.Name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue