From ecf1c35849e0713f0c40727ad2253f0ffec94b93 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 3 Dec 2004 07:43:00 +0000 Subject: (svn r907) Sprinkle holy ANSI water: - "inline" must before the return type (and after "static") - Initialise all struct members, not just some of them - Remove (one) spurious semicolon --- newgrf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index 841a4e73b..ac3c2eee4 100644 --- a/newgrf.c +++ b/newgrf.c @@ -728,7 +728,7 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int dts->ground_sprite = grf_load_dword(&buf); if (!dts->ground_sprite) { - static const DrawTileSeqStruct empty = {0x80}; + static const DrawTileSeqStruct empty = {0x80, 0, 0, 0, 0, 0, 0}; dts->seq = ∅ continue; } @@ -771,7 +771,7 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int dts->ground_sprite = sdts->ground_sprite; if (!dts->ground_sprite) { - static const DrawTileSeqStruct empty = {0x80}; + static const DrawTileSeqStruct empty = {0x80, 0, 0, 0, 0, 0, 0}; dts->seq = ∅ continue; } -- cgit v1.2.3-54-g00ecf