Fix CA1854

This commit is contained in:
RoosterDragon
2023-11-15 19:46:36 +00:00
committed by Pavel Penev
parent c2568ebd1f
commit c8efc5fdd7
19 changed files with 44 additions and 48 deletions

View File

@@ -91,8 +91,8 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
var res = (Type: (byte)0, Index: (byte)0);
var type = kv.Value.ToLowerInvariant();
if (OverlayResourceMapping.ContainsKey(type))
res = OverlayResourceMapping[type];
if (OverlayResourceMapping.TryGetValue(type, out var r))
res = r;
Map.Resources[cell] = new ResourceTile(res.Type, res.Index);
if (OverlayActors.Contains(type))