From 2b10ee1891b9586bd95ed01c20f9c188b4ca5650 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Feb 2014 21:12:28 +0000 Subject: (svn r26364) -Fix [FS#5892]: writing out of the bounds of the rail type map --- src/newgrf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.h b/src/newgrf.h index 9058aea32..a02b0021f 100644 --- a/src/newgrf.h +++ b/src/newgrf.h @@ -126,7 +126,7 @@ struct GRFFile : ZeroedMemoryAllocator { uint8 cargo_map[NUM_CARGO]; ///< Inverse cargo translation table (CargoID -> local ID) SmallVector 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 -- cgit v1.2.3-70-g09d2