mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Actually remove the script when it's task inventory item is deleted, rather
than just stopping it.
This commit is contained in:
@@ -527,7 +527,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
int type = m_items[itemID].InvType;
|
||||
if (type == 10) // Script
|
||||
{
|
||||
m_part.ParentGroup.Scene.EventManager.TriggerStopScript(m_part.LocalId, itemID);
|
||||
m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID);
|
||||
}
|
||||
m_items.Remove(itemID);
|
||||
m_inventorySerial++;
|
||||
|
||||
Reference in New Issue
Block a user