Tag NewGRF unaligned memory load in StationChangeInfo

This commit is contained in:
Jonathan G Rennison
2018-06-06 08:22:33 +01:00
parent 8f7e9d70ca
commit c36c5ac851

View File

@@ -1899,7 +1899,7 @@ static ChangeInfoResult StationChangeInfo(uint stid, int numinfo, int prop, Byte
NewGRFSpriteLayout *dts = &statspec->renderdata[t];
dts->consistent_max_offset = UINT16_MAX; // Spritesets are unknown, so no limit.
if (buf->HasData(4) && *(uint32*)buf->Data() == 0) {
if (buf->HasData(4) && *(unaligned_uint32*)buf->Data() == 0) {
buf->Skip(4);
extern const DrawTileSprites _station_display_datas_rail[8];
dts->Clone(&_station_display_datas_rail[t % 8]);