diff options
author | terkhen <terkhen@openttd.org> | 2010-04-07 14:17:29 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-04-07 14:17:29 +0000 |
commit | 869fac9964de697eeb41761c3e047eea858023f5 (patch) | |
tree | e723ca4637829cfd9c715da8e987a08b827beb4e /src/cargotype.h | |
parent | dfa9e9d9d3f49abc6d4957677db65c141adc92e8 (diff) | |
download | openttd-869fac9964de697eeb41761c3e047eea858023f5.tar.xz |
(svn r19573) -Fix (r19541): Special cargos did not appear at the refit list.
Diffstat (limited to 'src/cargotype.h')
-rw-r--r-- | src/cargotype.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cargotype.h b/src/cargotype.h index 4ce5e60f6..e9e3f6385 100644 --- a/src/cargotype.h +++ b/src/cargotype.h @@ -134,6 +134,7 @@ CargoID GetCargoIDByBitnum(uint8 bitnum); void InitializeSortedCargoSpecs(); extern const CargoSpec *_sorted_cargo_specs[NUM_CARGO]; extern uint8 _sorted_cargo_specs_size; +extern uint8 _sorted_standard_cargo_specs_size; /** Does cargo \a c have cargo class \a cc? * @param c Cargo type. @@ -151,4 +152,6 @@ static inline bool IsCargoInClass(CargoID c, CargoClass cc) #define FOR_ALL_SORTED_CARGOSPECS(var) for (uint8 index = 0; var = _sorted_cargo_specs[index], index < _sorted_cargo_specs_size; index++) +#define FOR_ALL_SORTED_STANDARD_CARGOSPECS(var) for (uint8 index = 0; var = _sorted_cargo_specs[index], index < _sorted_standard_cargo_specs_size; index++) + #endif /* CARGOTYPE_H */ |