Changeset - r22481:5e7607cf2f44
[Not reviewed]
master
0 1 0
frosch - 7 years ago 2016-12-10 13:28:47
frosch@openttd.org
(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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -152,7 +152,7 @@ RailType AllocateRailType(RailTypeLabel 
 

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

	
0 comments (0 inline, 0 general)