Fix IDE0074
This commit is contained in:
committed by
Pavel Penev
parent
cbd0583289
commit
bd2b3d9793
@@ -45,8 +45,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (r.IsTraitDisabled)
|
||||
continue;
|
||||
|
||||
if (acceptedReplacements == null)
|
||||
acceptedReplacements = new HashSet<string>();
|
||||
acceptedReplacements ??= new HashSet<string>();
|
||||
|
||||
acceptedReplacements.UnionWith(r.Info.Types);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user