mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r8865) -Codechange: (NewGRF) Ignore 1 byte action 0s during safety check
This commit is contained in:
parent
8001ab69fb
commit
a14de92f38
@ -1480,6 +1480,11 @@ static void SafeChangeInfo(byte *buf, int len)
|
||||
uint8 numinfo;
|
||||
uint8 index;
|
||||
|
||||
if (len == 1) {
|
||||
grfmsg(8, "Silently ignoring one-byte special sprite 0x00");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!check_length(len, 6, "SafeChangeInfo")) return;
|
||||
buf++;
|
||||
feature = grf_load_byte(&buf);
|
||||
|
Loading…
Reference in New Issue
Block a user