mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
Codefix: [NewGRF] Don't read an extended byte into uint8_t. (#13302)
This commit is contained in:
parent
8b664a42b0
commit
11529d865b
@ -5051,8 +5051,8 @@ static void ReserveChangeInfo(ByteReader &buf)
|
||||
if (feature != GSF_CARGOES && feature != GSF_GLOBALVAR && feature != GSF_RAILTYPES && feature != GSF_ROADTYPES && feature != GSF_TRAMTYPES) return;
|
||||
|
||||
uint8_t numprops = buf.ReadByte();
|
||||
uint8_t numinfo = buf.ReadByte();
|
||||
uint8_t index = buf.ReadExtendedByte();
|
||||
uint8_t numinfo = buf.ReadByte();
|
||||
uint16_t index = buf.ReadExtendedByte();
|
||||
|
||||
while (numprops-- && buf.HasData()) {
|
||||
uint8_t prop = buf.ReadByte();
|
||||
|
Loading…
Reference in New Issue
Block a user