From d69362709e410ce35faa8db2aa2d5f0610f73d22 Mon Sep 17 00:00:00 2001 From: Warlander Date: Thu, 26 Sep 2019 14:17:03 +0200 Subject: [PATCH] Made sure yield break still registers as finished coroutine --- Assets/Warlander/Deedplanner/Logic/CoroutineManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Warlander/Deedplanner/Logic/CoroutineManager.cs b/Assets/Warlander/Deedplanner/Logic/CoroutineManager.cs index eefc3e1d..c29459d9 100644 --- a/Assets/Warlander/Deedplanner/Logic/CoroutineManager.cs +++ b/Assets/Warlander/Deedplanner/Logic/CoroutineManager.cs @@ -71,8 +71,8 @@ private IEnumerator WrapCoroutine(IEnumerator enumerator) } } - yield return enumerator; enumeratorsExecutingCount--; + yield return enumerator; } }