(svn r26364) -Fix [FS#5892]: writing out of the bounds of the rail type map

This commit is contained in:
rubidium 2014-02-22 21:12:28 +00:00
parent 98539bd2c3
commit 2b10ee1891
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ struct GRFFile : ZeroedMemoryAllocator {
uint8 cargo_map[NUM_CARGO]; ///< Inverse cargo translation table (CargoID -> local ID)
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