Actually remove the script when it's task inventory item is deleted, rather

than just stopping it.
0.6.1-post-fixes
Melanie Thielker 2008-12-05 07:53:12 +00:00
parent 5e819ba933
commit 826450eabe
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ namespace OpenSim.Region.Environment.Scenes
int type = m_items[itemID].InvType; int type = m_items[itemID].InvType;
if (type == 10) // Script 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_items.Remove(itemID);
m_inventorySerial++; m_inventorySerial++;