diff --git a/Assets/TEngine/Runtime/GameFramework/Audio/AudioAgent.cs b/Assets/TEngine/Runtime/GameFramework/Audio/AudioAgent.cs index 27332697..604b0284 100644 --- a/Assets/TEngine/Runtime/GameFramework/Audio/AudioAgent.cs +++ b/Assets/TEngine/Runtime/GameFramework/Audio/AudioAgent.cs @@ -242,9 +242,9 @@ namespace TEngine _duration = 0; if (!string.IsNullOrEmpty(path)) { - if (GameModule.Audio.AudioClipPool.ContainsKey(path)) + if (GameModule.Audio.AudioClipPool.TryGetValue(path, out var operationHandle)) { - OnAssetLoadComplete(GameModule.Audio.AudioClipPool[path]); + OnAssetLoadComplete(operationHandle); return; }