Fixed some comparisons of LLUUIDs to null.

Thanks to DrSchofld for pointing this out.
This commit is contained in:
Jeff Ames
2008-03-19 09:36:13 +00:00
parent d135dad051
commit a0e1be3280
6 changed files with 13 additions and 19 deletions

View File

@@ -178,8 +178,8 @@ namespace OpenSim.Region.Environment.Scenes
public bool AddInventoryItem(IClientAPI remoteClient, uint localID,
InventoryItemBase item, LLUUID copyItemID)
{
LLUUID newItemId = (!copyItemID.Equals(null)) ? copyItemID : item.inventoryID;
LLUUID newItemId = (copyItemID != LLUUID.Zero) ? copyItemID : item.inventoryID;
SceneObjectPart part = GetChildPart(localID);
if (part != null)
{