aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 3fd6e13..de9d986 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -1081,7 +1081,7 @@ namespace OpenSim.Region.Framework.Scenes
1081 { 1081 {
1082 int type = m_items[itemID].InvType; 1082 int type = m_items[itemID].InvType;
1083 m_items.LockItemsForRead(false); 1083 m_items.LockItemsForRead(false);
1084 if (type == 10) // Script 1084 if (type == (int)InventoryType.LSL) // Script
1085 { 1085 {
1086 m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID); 1086 m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID);
1087 } 1087 }
@@ -1101,7 +1101,7 @@ namespace OpenSim.Region.Framework.Scenes
1101 m_items.LockItemsForRead(true); 1101 m_items.LockItemsForRead(true);
1102 foreach (TaskInventoryItem item in m_items.Values) 1102 foreach (TaskInventoryItem item in m_items.Values)
1103 { 1103 {
1104 if (item.Type == 10) 1104 if (item.Type == (int)InventoryType.LSL)
1105 { 1105 {
1106 scriptcount++; 1106 scriptcount++;
1107 } 1107 }