mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
3ee06b036e
commit
108a0fc0d7
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue