summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-02-22 21:12:28 +0000
committerrubidium <rubidium@openttd.org>2014-02-22 21:12:28 +0000
commit2b10ee1891b9586bd95ed01c20f9c188b4ca5650 (patch)
treeec14b8016e82b9e8e5eec0d44cbf24d13a737cc4
parent98539bd2c3c9805683f67a275c61972730a7c789 (diff)
downloadopenttd-2b10ee1891b9586bd95ed01c20f9c188b4ca5650.tar.xz
(svn r26364) -Fix [FS#5892]: writing out of the bounds of the rail type map
-rw-r--r--src/newgrf.h2
1 files changed, 1 insertions, 1 deletions
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<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