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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user