diff options
Diffstat (limited to 'OpenSim')
-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 3e62c1a..4fb5c95 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs | |||
@@ -125,9 +125,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
125 | { | 125 | { |
126 | if (avatar.IsChildAgent == false) | 126 | if (avatar.IsChildAgent == false) |
127 | { | 127 | { |
128 | result.Add(avatar.UUID); | 128 | if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null) |
129 | result.Add(avatar.PhysicsActor.Position); | 129 | { |
130 | result.Add(avatar.Name); | 130 | result.Add(avatar.UUID); |
131 | result.Add(avatar.PhysicsActor.Position); | ||
132 | result.Add(avatar.Name); | ||
133 | } | ||
131 | } | 134 | } |
132 | } | 135 | } |
133 | }); | 136 | }); |