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.
parent
b42cfe49a2
commit
f4fe8763ad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue