Small fix to prevent client thread crash in multi-region instances when

a scripted object is paid
0.6.2-post-fixes
Melanie Thielker 2009-01-02 16:24:44 +00:00
parent b1a677630f
commit 24f0d97075
1 changed files with 9 additions and 0 deletions

View File

@ -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;