diff options
author | peter1138 <peter1138@openttd.org> | 2007-03-21 13:19:01 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-03-21 13:19:01 +0000 |
commit | 93fe91cc8c1f38678dfb7cef6ede77c56ab36c1b (patch) | |
tree | e15177888ccaf427ebf30cc793b6da2908c47a8f /src/vehicle.cpp | |
parent | 7e00fdac9070368b0838685c5f8e422dc92f25ca (diff) | |
download | openttd-93fe91cc8c1f38678dfb7cef6ede77c56ab36c1b.tar.xz |
(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 29e66640f..5e8d64538 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -772,7 +772,7 @@ CargoID FindFirstRefittableCargo(EngineID engine_type) uint32 refit_mask = EngInfo(engine_type)->refit_mask; if (refit_mask != 0) { - for (CargoID cid = CT_PASSENGERS; cid < NUM_CARGO; cid++) { + for (CargoID cid = 0; cid < NUM_CARGO; cid++) { if (HASBIT(refit_mask, cid)) return cid; } } |