Actually remove the script if it tries to remove itself.

Fixes Mantis #2929
This commit is contained in:
Melanie Thielker
2009-04-12 12:03:07 +00:00
parent f6f3737fe8
commit 2864c45678
4 changed files with 38 additions and 5 deletions

View File

@@ -3577,7 +3577,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
if (item.Name == name)
{
m_host.Inventory.RemoveInventoryItem(item.ItemID);
if (item.ItemID == m_itemID)
throw new ScriptDeleteException();
else
m_host.Inventory.RemoveInventoryItem(item.ItemID);
return;
}
}