mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r26364) -Fix [FS#5892]: writing out of the bounds of the rail type map
This commit is contained in:
parent
98539bd2c3
commit
2b10ee1891
|
@ -126,7 +126,7 @@ struct GRFFile : ZeroedMemoryAllocator {
|
||||||
uint8 cargo_map[NUM_CARGO]; ///< Inverse cargo translation table (CargoID -> local ID)
|
uint8 cargo_map[NUM_CARGO]; ///< Inverse cargo translation table (CargoID -> local ID)
|
||||||
|
|
||||||
SmallVector<RailTypeLabel, 4> railtype_list; ///< Railtype translation table
|
SmallVector<RailTypeLabel, 4> railtype_list; ///< Railtype translation table
|
||||||
RailType railtype_map[RAILTYPE_END];
|
RailTypeByte railtype_map[RAILTYPE_END];
|
||||||
|
|
||||||
CanalProperties canal_local_properties[CF_END]; ///< Canal properties as set by this NewGRF
|
CanalProperties canal_local_properties[CF_END]; ///< Canal properties as set by this NewGRF
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue