Fix IDE0180

This commit is contained in:
RoosterDragon
2023-02-19 12:37:55 +00:00
committed by Pavel Penev
parent bf960b6eae
commit 5e52d067c8
3 changed files with 6 additions and 7 deletions

View File

@@ -142,10 +142,8 @@ namespace OpenRA.Mods.Common
for (var i = 0; i < items.Length - 1; i++)
{
var j = random.Next(items.Length - i);
var item = items[i + j];
items[i + j] = items[i];
items[i] = item;
yield return item;
(items[i], items[i + j]) = (items[i + j], items[i]);
yield return items[i];
}
if (items.Length > 0)