author | darkvater |
Sun, 14 Nov 2004 13:11:38 +0000 | |
changeset 396 | f7dc2d2144b6 |
parent 395 | 4c990f33dab7 |
child 397 | fc532e982139 |
grfspecial.c | file | annotate | diff | comparison | revisions |
--- a/grfspecial.c Sun Nov 14 13:07:07 2004 +0000 +++ b/grfspecial.c Sun Nov 14 13:11:38 2004 +0000 @@ -902,6 +902,11 @@ 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];