1
0
Fork 0

(svn r588) -newgrf: Silent ignore those stupid one-byte zero special sprites (dbsetw.grf is crawling with them) (pasky).

release/0.4.5
darkvater 2004-11-14 13:11:38 +00:00
parent 397cc50f61
commit 552689b7fe
1 changed files with 5 additions and 0 deletions

View File

@ -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];