Switch other struct types to default(T).
This commit is contained in:
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public class ResourceLayer : IRenderOverlay, IWorldLoaded, ITickRender, INotifyActorDisposing
|
||||
{
|
||||
static readonly CellContents EmptyCell = new CellContents();
|
||||
static readonly CellContents EmptyCell = default(CellContents);
|
||||
|
||||
readonly World world;
|
||||
readonly BuildingInfluence buildingInfluence;
|
||||
@@ -310,7 +310,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public struct CellContents
|
||||
{
|
||||
public static readonly CellContents Empty = new CellContents();
|
||||
public static readonly CellContents Empty = default(CellContents);
|
||||
public ResourceType Type;
|
||||
public int Density;
|
||||
public string Variant;
|
||||
|
||||
Reference in New Issue
Block a user