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.

integration
SignpostMarv 2012-10-05 14:37:55 +01:00 committed by Justin Clark-Casey (justincc)
parent b42cfe49a2
commit f4fe8763ad
1 changed files with 1 additions and 1 deletions

View File

@ -2701,7 +2701,7 @@ namespace OpenSim.Region.Framework.Scenes
{ {
foreach (KeyValuePair<UUID, TaskInventoryItem> item in TaskInventory) 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; soundID = item.Value.ItemID;
break; break;