Fix CA1854
This commit is contained in:
committed by
Pavel Penev
parent
c2568ebd1f
commit
c8efc5fdd7
@@ -262,9 +262,9 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
|
||||
var name = entries[1].ToLowerInvariant();
|
||||
|
||||
if (DeployableActors.ContainsKey(name))
|
||||
if (DeployableActors.TryGetValue(name, out var n))
|
||||
{
|
||||
name = DeployableActors[name];
|
||||
name = n;
|
||||
isDeployed = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user