(svn r19590) -Fix: [NewGRF] setting industry prop 0x24 to 0 caused empty station names

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
yexo 15 years ago
parent d8baa1342c
commit 737b003c8a

@ -2638,7 +2638,7 @@ static ChangeInfoResult IndustriesChangeInfo(uint indid, int numinfo, int prop,
case 0x24: // name for nearby station
indsp->station_name = buf->ReadWord();
_string_to_grf_mapping[&indsp->station_name] = _cur_grffile->grfid;
if (indsp->station_name != STR_NULL) _string_to_grf_mapping[&indsp->station_name] = _cur_grffile->grfid;
break;
default:

Loading…
Cancel
Save