From 46da95d1b73ebe4a8fe4f27a3b16f46317a403ef Mon Sep 17 00:00:00 2001
From: UbitUmarov
Date: Sat, 2 Aug 2014 19:33:38 +0100
Subject: bug hunt:  disable group for npc

---
 OpenSim/Region/Framework/Scenes/ScenePresence.cs | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index faaf74c..edaa69c 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1149,10 +1149,14 @@ namespace OpenSim.Region.Framework.Scenes
             // Should not be needed if we are not trying to tell this region to close
 //            DoNotCloseAfterTeleport = false;
 
-            IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>();
-            if (gm != null)
-                Grouptitle = gm.GetGroupTitle(m_uuid);
+            IGroupsModule gm = null;
+            if (!isNPC) //  disable groups ofr NPCs  BUG HUNT
+            {
 
+                gm = m_scene.RequestModuleInterface<IGroupsModule>();
+                if (gm != null)
+                    Grouptitle = gm.GetGroupTitle(m_uuid);
+            }
             RegionHandle = m_scene.RegionInfo.RegionHandle;
 
             m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene);
@@ -1165,6 +1169,7 @@ namespace OpenSim.Region.Framework.Scenes
             // Previous Agent Difference - AGNI sends an unsolicited AgentDataUpdate upon root agent status
             try
             {
+                
                 if (gm != null)
                 {
                     groupUUID = ControllingClient.ActiveGroupId;
-- 
cgit v1.1