mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r4716) - NewGRF: fix problem with loading custom station class id; use BSWAP32() only on variables, not functions.
This commit is contained in:
parent
3c7dda163e
commit
894330c93a
4
newgrf.c
4
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user