From 1f736afe86e2555409d1f25adb02b56a0f6f11fe Mon Sep 17 00:00:00 2001 From: "Ram.Type-0" Date: Sun, 30 Aug 2020 13:53:29 +0900 Subject: [PATCH] Revert change for ContinuationQueue.RunCore --- .../Plugins/UniTask/Runtime/Internal/ContinuationQueue.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ContinuationQueue.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ContinuationQueue.cs index 5458a5d..829b09e 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ContinuationQueue.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ContinuationQueue.cs @@ -171,8 +171,8 @@ namespace Cysharp.Threading.Tasks.Internal for (int i = 0; i < actionListCount; i++) { - ref var action = ref actionList[i];//Reduce array bounds check - + var action = actionList[i];//Reduce array bounds check + actionList[i] = null; try { action(); @@ -181,7 +181,6 @@ namespace Cysharp.Threading.Tasks.Internal { UnityEngine.Debug.LogException(ex); } - action = null; } {