Minor formatting cleanup.

This commit is contained in:
Jeff Ames
2008-12-03 23:48:24 +00:00
parent 17a0474c5f
commit 1bd92a6d34
2 changed files with 10 additions and 10 deletions

View File

@@ -3029,9 +3029,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return;
}
IClientAPI client = null;
ScenePresence sp = World.GetScenePresence(m_host.TaskInventory[invItemID].PermsGranter);
if (sp!=null)
client = sp.ControllingClient;
ScenePresence sp = World.GetScenePresence(m_host.TaskInventory[invItemID].PermsGranter);
if (sp != null)
client = sp.ControllingClient;
SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)target);
if (targetPart.ParentGroup.RootPart.AttachmentPoint != 0)
return; // Fail silently if attached