Small fix to prevent client thread crash in multi-region instances when
a scripted object is paid0.6.2-post-fixes
parent
b1a677630f
commit
24f0d97075
|
@ -70,8 +70,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
private void HandleObjectPaid(UUID objectID, UUID agentID,
|
private void HandleObjectPaid(UUID objectID, UUID agentID,
|
||||||
int amount)
|
int amount)
|
||||||
{
|
{
|
||||||
|
// Since this is an event from a shared module, all scenes will
|
||||||
|
// get it. But only one has the object in question. The others
|
||||||
|
// just ignore it.
|
||||||
|
//
|
||||||
SceneObjectPart part =
|
SceneObjectPart part =
|
||||||
myScriptEngine.World.GetSceneObjectPart(objectID);
|
myScriptEngine.World.GetSceneObjectPart(objectID);
|
||||||
|
|
||||||
|
if (part == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Console.WriteLine("Paid: {0} from {1}, amount {2}", objectID,agentID,amount);
|
||||||
if (part.ParentGroup != null)
|
if (part.ParentGroup != null)
|
||||||
part = part.ParentGroup.RootPart;
|
part = part.ParentGroup.RootPart;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue