Switch other struct types to default(T).

This commit is contained in:
Paul Chote
2019-06-07 21:28:38 +01:00
committed by abcdefg30
parent dba1301b61
commit ebd36891dc
13 changed files with 15 additions and 15 deletions

View File

@@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Traits.Render
var halfSize = font.Measure(number) / 2;
var boundsOffset = new int2(bounds.Left + bounds.Right, bounds.Top + bounds.Bottom) / 2;
var sizeOffset = new int2();
var sizeOffset = int2.Zero;
if (info.ReferencePoint.HasFlag(ReferencePoints.Top))
{
boundsOffset -= new int2(0, bounds.Height / 2);