Call RemoveScriptInstance when removing from inventory

0.8.0.3
Dev Random 2014-07-11 08:56:04 -04:00 committed by Justin Clark-Casey
parent 1670d306d7
commit d35b5737a8
1 changed files with 2 additions and 2 deletions

View File

@ -870,8 +870,8 @@ namespace OpenSim.Region.Framework.Scenes
int type = m_items[itemID].InvType;
if (type == 10) // Script
{
m_part.RemoveScriptEvents(itemID);
m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID);
// route it through here, to handle script cleanup tasks
RemoveScriptInstance(itemID, false);
}
m_items.Remove(itemID);
m_inventorySerial++;