Codechange: Silence -Wclass-memaccess warnings with GCC8

This commit is contained in:
Charles Pigott
2018-05-13 18:34:57 +01:00
committed by frosch
parent e1b9187e9b
commit 5f86e1a390
9 changed files with 12 additions and 15 deletions

View File

@@ -1080,8 +1080,7 @@ static uint River_Hash(uint tile, uint dir)
*/
static void BuildRiver(TileIndex begin, TileIndex end)
{
AyStar finder;
MemSetT(&finder, 0);
AyStar finder = {};
finder.CalculateG = River_CalculateG;
finder.CalculateH = River_CalculateH;
finder.GetNeighbours = River_GetNeighbours;