diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index c282780..9e2c256 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -174,6 +174,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
174 | m_inventorySerial++; | 174 | m_inventorySerial++; |
175 | } | 175 | } |
176 | 176 | ||
177 | /// <summary> | ||
178 | /// Remove an item from this prim's inventory | ||
179 | /// </summary> | ||
180 | /// <param name="remoteClient"></param> | ||
181 | /// <param name="localID"></param> | ||
182 | /// <param name="itemID"></param> | ||
183 | /// <returns>Numeric asset type of the item removed.</returns> | ||
177 | public int RemoveInventoryItem(IClientAPI remoteClient, uint localID, LLUUID itemID) | 184 | public int RemoveInventoryItem(IClientAPI remoteClient, uint localID, LLUUID itemID) |
178 | { | 185 | { |
179 | if (localID == LocalID) | 186 | if (localID == LocalID) |
@@ -183,7 +190,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
183 | string type = m_taskInventory[itemID].inv_type; | 190 | string type = m_taskInventory[itemID].inv_type; |
184 | m_taskInventory.Remove(itemID); | 191 | m_taskInventory.Remove(itemID); |
185 | m_inventorySerial++; | 192 | m_inventorySerial++; |
186 | if (type == "lsl_text") | 193 | if (type == "lsltext") |
187 | { | 194 | { |
188 | return 10; | 195 | return 10; |
189 | } | 196 | } |