aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/EventManager.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
index bb939fb..8355b60 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
@@ -70,8 +70,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
70 private void HandleObjectPaid(UUID objectID, UUID agentID, 70 private void HandleObjectPaid(UUID objectID, UUID agentID,
71 int amount) 71 int amount)
72 { 72 {
73 // Since this is an event from a shared module, all scenes will
74 // get it. But only one has the object in question. The others
75 // just ignore it.
76 //
73 SceneObjectPart part = 77 SceneObjectPart part =
74 myScriptEngine.World.GetSceneObjectPart(objectID); 78 myScriptEngine.World.GetSceneObjectPart(objectID);
79
80 if (part == null)
81 return;
82
83 Console.WriteLine("Paid: {0} from {1}, amount {2}", objectID,agentID,amount);
75 if (part.ParentGroup != null) 84 if (part.ParentGroup != null)
76 part = part.ParentGroup.RootPart; 85 part = part.ParentGroup.RootPart;
77 86