diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index fc6024a..bd60759 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | |||
@@ -570,15 +570,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
570 | 570 | ||
571 | #endregion | 571 | #endregion |
572 | 572 | ||
573 | |||
574 | public void ResetScript(uint localID, UUID itemID) | 573 | public void ResetScript(uint localID, UUID itemID) |
575 | { | 574 | { |
576 | InstanceData id = GetScript(localID, itemID); | 575 | InstanceData id = GetScript(localID, itemID); |
577 | string script = id.Source; | 576 | string script = id.Source; |
578 | StopScript(localID, itemID); | 577 | StopScript(localID, itemID); |
579 | SceneObjectPart part = World.GetSceneObjectPart(localID); | 578 | SceneObjectPart part = World.GetSceneObjectPart(localID); |
580 | part.GetInventoryItem(itemID).PermsMask = 0; | 579 | part.Inventory.GetInventoryItem(itemID).PermsMask = 0; |
581 | part.GetInventoryItem(itemID).PermsGranter = UUID.Zero; | 580 | part.Inventory.GetInventoryItem(itemID).PermsGranter = UUID.Zero; |
582 | StartScript(localID, itemID, script, id.StartParam, false); | 581 | StartScript(localID, itemID, script, id.StartParam, false); |
583 | } | 582 | } |
584 | 583 | ||