aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index fa7ee21..ef511aa 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -3843,7 +3843,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3843 LSL_List result = new LSL_List(); 3843 LSL_List result = new LSL_List();
3844 World.ForEachRootScenePresence(delegate (ScenePresence avatar) 3844 World.ForEachRootScenePresence(delegate (ScenePresence avatar)
3845 { 3845 {
3846 if (avatar != null && avatar.IsNPC) 3846 // npcs are not childagents but that is now.
3847 if (avatar != null && avatar.IsNPC && !avatar.IsDeleted && !avatar.IsChildAgent)
3847 { 3848 {
3848 result.Add(new LSL_String(avatar.UUID.ToString())); 3849 result.Add(new LSL_String(avatar.UUID.ToString()));
3849 result.Add(new LSL_Vector(avatar.AbsolutePosition)); 3850 result.Add(new LSL_Vector(avatar.AbsolutePosition));