mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
Small fix to prevent client thread crash in multi-region instances when
a scripted object is paid
This commit is contained in:
@@ -70,8 +70,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
private void HandleObjectPaid(UUID objectID, UUID agentID,
|
||||
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 =
|
||||
myScriptEngine.World.GetSceneObjectPart(objectID);
|
||||
|
||||
if (part == null)
|
||||
return;
|
||||
|
||||
Console.WriteLine("Paid: {0} from {1}, amount {2}", objectID,agentID,amount);
|
||||
if (part.ParentGroup != null)
|
||||
part = part.ParentGroup.RootPart;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user