(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.

This commit is contained in:
peter1138
2007-03-21 13:19:01 +00:00
parent 7e00fdac90
commit 93fe91cc8c
13 changed files with 29 additions and 35 deletions

View File

@@ -1408,7 +1408,7 @@ static void MaybeCrashAirplane(Vehicle *v)
if (GB(Random(), 0, 16) > prob) return;
/* Crash the airplane. Remove all goods stored at the station. */
for (uint i = 0; i != NUM_CARGO; i++) {
for (CargoID i = 0; i < NUM_CARGO; i++) {
st->goods[i].rating = 1;
SB(st->goods[i].waiting_acceptance, 0, 12, 0);
}