diff --git a/grfspecial.c b/grfspecial.c index a87ad7deb9..58e25e24a3 100644 --- a/grfspecial.c +++ b/grfspecial.c @@ -902,6 +902,11 @@ static void VehicleChangeInfo(byte *buf, int len) byte engine; EngineInfo *ei; + if (len == 1) { + DEBUG(grf, 8) ("Silently ignoring one-byte special sprite 0x00."); + return; + } + check_length(len, 6, "VehicleChangeInfo"); feature = buf[1]; numprops = buf[2];