diff options
author | yexo <yexo@openttd.org> | 2010-04-09 01:17:44 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-04-09 01:17:44 +0000 |
commit | 737b003c8a1182eaaabb4051ebc57a9cdd9df929 (patch) | |
tree | 721c944100ecb2c032f6b7bf9342fc21a629ccb2 /src | |
parent | d8baa1342c4ddce823724b758c5b3e4547e84e90 (diff) | |
download | openttd-737b003c8a1182eaaabb4051ebc57a9cdd9df929.tar.xz |
(svn r19590) -Fix: [NewGRF] setting industry prop 0x24 to 0 caused empty station names
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 35f41bb19..c5af46506 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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: |