1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

Codefix: [NewGRF] Don't read an extended byte into uint8_t. (#13302)

This commit is contained in:
2025-01-11 15:53:24 +00:00
committed by GitHub
parent 8b664a42b0
commit 11529d865b

View File

@@ -5052,7 +5052,7 @@ static void ReserveChangeInfo(ByteReader &buf)
uint8_t numprops = buf.ReadByte();
uint8_t numinfo = buf.ReadByte();
uint8_t index = buf.ReadExtendedByte();
uint16_t index = buf.ReadExtendedByte();
while (numprops-- && buf.HasData()) {
uint8_t prop = buf.ReadByte();