summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-07 21:10:57 +0000
committerrubidium <rubidium@openttd.org>2010-08-07 21:10:57 +0000
commit2d3ee123af3c41faf9870abfc8d579c97cc50f2f (patch)
tree2af2196fabea14d3a3fd24575c84c360807b0d36 /src/newgrf.cpp
parent6d6939f844783e4e2d6a844aa53e0e059303f2f3 (diff)
downloadopenttd-2d3ee123af3c41faf9870abfc8d579c97cc50f2f.tar.xz
(svn r20402) -Codechange: rename the airport/station class id to something slightly more generic
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 9e28e70d4..505f3ee50 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1151,7 +1151,7 @@ static ChangeInfoResult StationChangeInfo(uint stid, int numinfo, int prop, Byte
/* Swap classid because we read it in BE meaning WAYP or DFLT */
uint32 classid = buf->ReadDWord();
- (*spec)->sclass = AllocateStationClass(BSWAP32(classid));
+ (*spec)->cls_id = AllocateStationClass(BSWAP32(classid));
break;
}
@@ -4270,8 +4270,8 @@ static void FeatureNewName(ByteReader *buf)
if (_cur_grffile->stations == NULL || _cur_grffile->stations[GB(id, 0, 8)] == NULL) {
grfmsg(1, "FeatureNewName: Attempt to name undefined station 0x%X, ignoring", GB(id, 0, 8));
} else {
- StationClassID sclass = _cur_grffile->stations[GB(id, 0, 8)]->sclass;
- SetStationClassName(sclass, AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED));
+ StationClassID cls_id = _cur_grffile->stations[GB(id, 0, 8)]->cls_id;
+ SetStationClassName(cls_id, AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED));
}
break;