Fix IDE0074
This commit is contained in:
committed by
Pavel Penev
parent
cbd0583289
commit
bd2b3d9793
@@ -45,8 +45,7 @@ namespace OpenRA.Mods.Cnc.Activities
|
||||
|
||||
protected override void OnFirstRun(Actor self)
|
||||
{
|
||||
if (minefield == null)
|
||||
minefield = new List<CPos> { self.Location };
|
||||
minefield ??= new List<CPos> { self.Location };
|
||||
}
|
||||
|
||||
CPos? NextValidCell(Actor self)
|
||||
|
||||
@@ -71,8 +71,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
|
||||
continue;
|
||||
|
||||
var prefix = match.Groups["prefix"].Value;
|
||||
if (framePrefix == null)
|
||||
framePrefix = prefix;
|
||||
framePrefix ??= prefix;
|
||||
|
||||
if (prefix != framePrefix)
|
||||
throw new InvalidDataException($"Frame prefix mismatch: `{prefix}` != `{framePrefix}`");
|
||||
|
||||
Reference in New Issue
Block a user