aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
index 4734fa9..75ec33a 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
@@ -53,10 +53,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
53 /// <returns></returns> 53 /// <returns></returns>
54 private SceneObjectPart GetSOP() 54 private SceneObjectPart GetSOP()
55 { 55 {
56 if (m_rootScene.Entities.ContainsKey(m_localID)) 56 return m_rootScene.GetSceneObjectPart(m_localID);
57 return ((SceneObjectGroup) m_rootScene.Entities[m_localID]).RootPart;
58
59 return null;
60 } 57 }
61 58
62 #region OnTouch 59 #region OnTouch