mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
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:
committed by
Justin Clark-Casey (justincc)
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;
|
||||
|
||||
Reference in New Issue
Block a user