summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-03-15 13:21:31 +0000
committersmatz <smatz@openttd.org>2008-03-15 13:21:31 +0000
commitbfae49aeb2affaf239f7e9b04b6b7e226830e962 (patch)
tree430a2db18c790d538b3473d93a0c95f2afbdde7d /src/newgrf_station.cpp
parent5db7288ea961e1418d0983d8ef4c08c32d2fc879 (diff)
downloadopenttd-bfae49aeb2affaf239f7e9b04b6b7e226830e962.tar.xz
(svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 51fef9d35..aefef9ed1 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -105,7 +105,7 @@ StringID GetStationClassName(StationClassID sclass)
uint GetNumStationClasses()
{
uint i;
- for (i = 0; i < STAT_CLASS_MAX && _station_classes[i].id != 0; i++);
+ for (i = 0; i < STAT_CLASS_MAX && _station_classes[i].id != 0; i++) {}
return i;
}
@@ -724,7 +724,7 @@ void DeallocateSpecFromStation(Station* st, byte specindex)
/* If this was the highest spec index, reallocate */
if (specindex == st->num_specs - 1) {
- for (; st->speclist[st->num_specs - 1].grfid == 0 && st->num_specs > 1; st->num_specs--);
+ for (; st->speclist[st->num_specs - 1].grfid == 0 && st->num_specs > 1; st->num_specs--) {}
if (st->num_specs > 1) {
st->speclist = ReallocT(st->speclist, st->num_specs);