From fd1edcdedfab973a703a1473affd15d0285567e9 Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 26 Nov 2022 15:14:46 +0800 Subject: [PATCH] Fix #45 --- Assets/YooAsset/Runtime/YooAssets.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 6c9c200..08e36cb 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -47,9 +47,9 @@ namespace YooAsset OperationSystem.Update(); DownloadSystem.Update(); - foreach (var package in _packages) + for (int i = 0; i < _packages.Count; i++) { - package.UpdatePackage(); + _packages[i].UpdatePackage(); } } }