Gosh, fixing another nullref issue in cmGetAvatarList. I deserve spanks.

avinationmerge
Tom Grimshaw 2010-06-01 13:22:24 -07:00
parent 0526a91206
commit 0209033dd9
1 changed files with 6 additions and 3 deletions

View File

@ -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);
}
} }
} }
} }