summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-03 19:31:00 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-03 19:31:00 +0000
commit6b01384faf48c19968ed1ccef1d3f4f487908794 (patch)
tree5b12c5c494d10dcdeb0a861fae17b912e0639bbb
parent758bb8f34be5100a32bb1965d6fd85a799191f7d (diff)
downloadopenttd-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf.c b/newgrf.c
index b27ef8c3e..0bb3e94e7 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -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;