Fix CA1864
This commit is contained in:
committed by
Pavel Penev
parent
3259737774
commit
9f526610dd
@@ -72,8 +72,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
continue;
|
||||
|
||||
// Add power to dictionary if not in delay dictionary yet
|
||||
if (!waitingPowers.ContainsKey(sp))
|
||||
waitingPowers.Add(sp, 0);
|
||||
waitingPowers.TryAdd(sp, 0);
|
||||
|
||||
if (waitingPowers[sp] > 0)
|
||||
waitingPowers[sp]--;
|
||||
|
||||
Reference in New Issue
Block a user