diff options
author | frosch <frosch@openttd.org> | 2016-12-10 13:28:47 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2016-12-10 13:28:47 +0000 |
commit | 108a0fc0d73c02220354a287d0faa12f160c52c1 (patch) | |
tree | 18cef1a07f5d3855897062846b0b7f5643ff2d5e /src | |
parent | 3ee06b036ea2e6b511a911bc77d5758413584402 (diff) | |
download | openttd-108a0fc0d73c02220354a287d0faa12f160c52c1.tar.xz |
(svn r27688) -Fix-ish: Initialise new railtypes with the original railtype data, though strictly NewGRF could only have modified 'label' and 'alternate_labels' at the time AllocateRailType is called, which are reset anyway.
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 8348d7da9..511f5abc7 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -152,7 +152,7 @@ RailType AllocateRailType(RailTypeLabel label) if (rti->label == 0) { /* Set up new rail type */ - *rti = _railtypes[RAILTYPE_RAIL]; + *rti = _original_railtypes[RAILTYPE_RAIL]; rti->label = label; rti->alternate_labels.Clear(); |