Call RemoveScriptInstance when removing from inventory
parent
1670d306d7
commit
d35b5737a8
|
@ -870,8 +870,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
int type = m_items[itemID].InvType;
|
int type = m_items[itemID].InvType;
|
||||||
if (type == 10) // Script
|
if (type == 10) // Script
|
||||||
{
|
{
|
||||||
m_part.RemoveScriptEvents(itemID);
|
// route it through here, to handle script cleanup tasks
|
||||||
m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID);
|
RemoveScriptInstance(itemID, false);
|
||||||
}
|
}
|
||||||
m_items.Remove(itemID);
|
m_items.Remove(itemID);
|
||||||
m_inventorySerial++;
|
m_inventorySerial++;
|
||||||
|
|
Loading…
Reference in New Issue