Changeset - r21276:8b14e51f58a8
[Not reviewed]
master
0 1 0
rubidium - 10 years ago 2014-02-22 21:12:28
rubidium@openttd.org
(svn r26364) -Fix [FS#5892]: writing out of the bounds of the rail type map
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf.h
Show inline comments
 
@@ -123,13 +123,13 @@ struct GRFFile : ZeroedMemoryAllocator {
 
	GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array.
 

	
 
	SmallVector<CargoLabel, 4> cargo_list;          ///< Cargo translation table (local ID -> label)
 
	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
 

	
 
	struct LanguageMap *language_map; ///< Mappings related to the languages.
 

	
 
	int traininfo_vehicle_pitch;  ///< Vertical offset for draing train images in depot GUI and vehicle details
0 comments (0 inline, 0 general)