forked from mirror/OpenTTD
(svn r588) -newgrf: Silent ignore those stupid one-byte zero special sprites (dbsetw.grf is crawling with them) (pasky).
This commit is contained in:
@@ -902,6 +902,11 @@ static void VehicleChangeInfo(byte *buf, int len)
|
|||||||
byte engine;
|
byte engine;
|
||||||
EngineInfo *ei;
|
EngineInfo *ei;
|
||||||
|
|
||||||
|
if (len == 1) {
|
||||||
|
DEBUG(grf, 8) ("Silently ignoring one-byte special sprite 0x00.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
check_length(len, 6, "VehicleChangeInfo");
|
check_length(len, 6, "VehicleChangeInfo");
|
||||||
feature = buf[1];
|
feature = buf[1];
|
||||||
numprops = buf[2];
|
numprops = buf[2];
|
||||||
|
Reference in New Issue
Block a user