aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 245f258..83990b1 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -319,11 +319,12 @@ namespace OpenSim.Region.Framework.Scenes
319 // Passing something to another avatar or a an object will already 319 // Passing something to another avatar or a an object will already
320 InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); 320 InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId);
321 item = InventoryService.GetItem(item); 321 item = InventoryService.GetItem(item);
322 if (item.Owner != remoteClient.AgentId)
323 return;
324 322
325 if (item != null) 323 if (item != null)
326 { 324 {
325 if (item.Owner != remoteClient.AgentId)
326 return;
327
327 if (UUID.Zero == transactionID) 328 if (UUID.Zero == transactionID)
328 { 329 {
329 item.Flags = (item.Flags & ~(uint)255) | (itemUpd.Flags & (uint)255); 330 item.Flags = (item.Flags & ~(uint)255) | (itemUpd.Flags & (uint)255);
@@ -371,8 +372,9 @@ namespace OpenSim.Region.Framework.Scenes
371 } 372 }
372 else 373 else
373 { 374 {
374 m_log.Error( 375 m_log.ErrorFormat(
375 "[AGENTINVENTORY]: Item ID " + itemID + " not found for an inventory item update."); 376 "[AGENTINVENTORY]: Item id {0} not found for an inventory item update for {1}.",
377 itemID, remoteClient.Name);
376 } 378 }
377 } 379 }
378 380