From b1b6d15072bda3d8382ecb0ae42a409ff2d09867 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 12 Nov 2005 08:51:46 +0000 Subject: (svn r3169) Little bit of coding style fixing, and change from value to lengthof() --- newgrf.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index 0d0ed95cd..4d44dd6b3 100644 --- a/newgrf.c +++ b/newgrf.c @@ -2392,13 +2392,12 @@ static void ReleaseSpriteGroups(GRFFile *file) static void ResetCustomStations(void) { GRFFile *file; - int i; + uint i; CargoID c; for (file = _first_grffile; file != NULL; file = file->next) { - for (i = 0; i < 256; i++) { - if (file->stations[i].grfid != file->grfid) - continue; + for (i = 0; i < lengthof(file->stations); i++) { + if (file->stations[i].grfid != file->grfid) continue; // TODO: Release renderdata, platforms and layouts -- cgit v1.2.3-54-g00ecf