From 6b01384faf48c19968ed1ccef1d3f4f487908794 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 3 May 2006 19:31:00 +0000 Subject: (svn r4716) - NewGRF: fix problem with loading custom station class id; use BSWAP32() only on variables, not functions. --- newgrf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newgrf.c') 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; -- cgit v1.2.3-70-g09d2