mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Call RemoveScriptInstance when removing from inventory
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
2766bf3fef
commit
4e92b55231
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user