diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs index 4f1e9f7..5b180ff 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs | |||
@@ -98,9 +98,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
98 | { | 98 | { |
99 | if (avatar.IsChildAgent == false) | 99 | if (avatar.IsChildAgent == false) |
100 | { | 100 | { |
101 | result.Add(avatar.UUID); | 101 | if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null) |
102 | result.Add(avatar.PhysicsActor.Position); | 102 | { |
103 | result.Add(avatar.Name); | 103 | result.Add(avatar.UUID); |
104 | result.Add(avatar.PhysicsActor.Position); | ||
105 | result.Add(avatar.Name); | ||
106 | } | ||
104 | } | 107 | } |
105 | } | 108 | } |
106 | } | 109 | } |