Fix IDE0074
This commit is contained in:
committed by
Pavel Penev
parent
cbd0583289
commit
bd2b3d9793
@@ -802,8 +802,7 @@ namespace OpenRA.Mods.Common.Pathfinder
|
||||
sourcesWithPathableNodes.Add(source);
|
||||
else
|
||||
{
|
||||
if (unpathableNodes == null)
|
||||
unpathableNodes = new List<CPos>();
|
||||
unpathableNodes ??= new List<CPos>();
|
||||
unpathableNodes.Add(adjacentSource);
|
||||
}
|
||||
}
|
||||
@@ -814,8 +813,7 @@ namespace OpenRA.Mods.Common.Pathfinder
|
||||
sourcesWithPathableNodes.Add(source);
|
||||
else
|
||||
{
|
||||
if (unpathableNodes == null)
|
||||
unpathableNodes = new List<CPos>();
|
||||
unpathableNodes ??= new List<CPos>();
|
||||
unpathableNodes.Add(adjacentSource);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user