diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-03 19:31:00 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-03 19:31:00 +0000 |
commit | 6b01384faf48c19968ed1ccef1d3f4f487908794 (patch) | |
tree | 5b12c5c494d10dcdeb0a861fae17b912e0639bbb | |
parent | 758bb8f34be5100a32bb1965d6fd85a799191f7d (diff) | |
download | openttd-6b01384faf48c19968ed1ccef1d3f4f487908794.tar.xz |
(svn r4716) - NewGRF: fix problem with loading custom station class id; use BSWAP32() only on variables, not functions.
-rw-r--r-- | newgrf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -793,8 +793,8 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int case 0x08: /* Class ID */ FOR_EACH_OBJECT { /* Swap classid because we read it in BE meaning WAYP or DFLT */ - uint32 classid = BSWAP32(grf_load_dword(&buf)); - statspec[i].sclass = AllocateStationClass(classid); + uint32 classid = grf_load_dword(&buf); + statspec[i].sclass = AllocateStationClass(BSWAP32(classid)); } break; |