1
0
Fork 0

(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.

release/1.7
frosch 2016-12-10 13:28:47 +00:00
parent 3ee06b036e
commit 108a0fc0d7
1 changed files with 1 additions and 1 deletions

View File

@ -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();