From 26fc65209da7067e3d985730de892a2f8e90f1dc Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 9 Jul 2020 17:44:48 +0200 Subject: [PATCH] Fix the bogus Actors iterator --- OpenRA.Game/TraitDictionary.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/OpenRA.Game/TraitDictionary.cs b/OpenRA.Game/TraitDictionary.cs index d3da70e7d2..93262299af 100644 --- a/OpenRA.Game/TraitDictionary.cs +++ b/OpenRA.Game/TraitDictionary.cs @@ -228,7 +228,6 @@ namespace OpenRA for (var i = 0; i < actors.Count; i++) { - last = actors[i]; var current = actors[i]; if (current == last || !predicate(traits[i])) continue;