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

This commit is contained in:
yexo 2010-04-09 01:17:44 +00:00
parent d8baa1342c
commit 737b003c8a

View File

@ -2638,7 +2638,7 @@ static ChangeInfoResult IndustriesChangeInfo(uint indid, int numinfo, int prop,
case 0x24: // name for nearby station case 0x24: // name for nearby station
indsp->station_name = buf->ReadWord(); 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; break;
default: default: