summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-04-09 01:17:44 +0000
committeryexo <yexo@openttd.org>2010-04-09 01:17:44 +0000
commit737b003c8a1182eaaabb4051ebc57a9cdd9df929 (patch)
tree721c944100ecb2c032f6b7bf9342fc21a629ccb2 /src
parentd8baa1342c4ddce823724b758c5b3e4547e84e90 (diff)
downloadopenttd-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.cpp2
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: