Changing the logic order in the TaskInventory iterator of ScenObjectPart.SendSound, since we can currently have non-unique object inventory names so we should check the asset type first.

This commit is contained in:
SignpostMarv
2012-10-05 14:37:55 +01:00
committed by Justin Clark-Casey (justincc)
parent b42cfe49a2
commit f4fe8763ad

View File

@@ -2701,7 +2701,7 @@ namespace OpenSim.Region.Framework.Scenes
{
foreach (KeyValuePair<UUID, TaskInventoryItem> item in TaskInventory)
{
if (item.Value.Name == sound && item.Value.Type == (int)AssetType.Sound)
if (item.Value.Type == (int)AssetType.Sound && item.Value.Name == sound)
{
soundID = item.Value.ItemID;
break;