diff options
author | peter1138 <peter1138@openttd.org> | 2005-11-12 08:51:46 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-11-12 08:51:46 +0000 |
commit | b3056bc799f51c631eed2521032071a79a4229c3 (patch) | |
tree | 2791c360870a1bc3dc28549679be38e0edd891a7 /newgrf.c | |
parent | a7fe1495cd617aa18b2e0cba929a54c2c4e4c2a6 (diff) | |
download | openttd-b3056bc799f51c631eed2521032071a79a4229c3.tar.xz |
(svn r3169) Little bit of coding style fixing, and change from value to lengthof()
Diffstat (limited to 'newgrf.c')
-rw-r--r-- | newgrf.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |