aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index f4e7990..0964821 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3577,7 +3577,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3577 { 3577 {
3578 if (item.Name == name) 3578 if (item.Name == name)
3579 { 3579 {
3580 m_host.Inventory.RemoveInventoryItem(item.ItemID); 3580 if (item.ItemID == m_itemID)
3581 throw new ScriptDeleteException();
3582 else
3583 m_host.Inventory.RemoveInventoryItem(item.ItemID);
3581 return; 3584 return;
3582 } 3585 }
3583 } 3586 }