mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r19590) -Fix: [NewGRF] setting industry prop 0x24 to 0 caused empty station names
This commit is contained in:
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…
Reference in New Issue
Block a user