diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index 67ac0ce..bb939fb 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | |||
@@ -72,6 +72,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
72 | { | 72 | { |
73 | SceneObjectPart part = | 73 | SceneObjectPart part = |
74 | myScriptEngine.World.GetSceneObjectPart(objectID); | 74 | myScriptEngine.World.GetSceneObjectPart(objectID); |
75 | if (part.ParentGroup != null) | ||
76 | part = part.ParentGroup.RootPart; | ||
75 | 77 | ||
76 | if (part != null) | 78 | if (part != null) |
77 | { | 79 | { |