(svn r3005) -Fix, NewGRF: Some GRF files don't specify a name or description, in which case the Action 8 is 8 bytes, not 9. (pb_viaduct)
authorpeter1138
Sat, 01 Oct 2005 17:41:41 +0000
changeset 2479 1227c8b61d1b
parent 2478 cd6a02ba3853
child 2480 ac1d90deb2ba
(svn r3005) -Fix, NewGRF: Some GRF files don't specify a name or description, in which case the Action 8 is 8 bytes, not 9. (pb_viaduct)
newgrf.c
--- a/newgrf.c	Sat Oct 01 17:38:48 2005 +0000
+++ b/newgrf.c	Sat Oct 01 17:41:41 2005 +0000
@@ -1919,7 +1919,7 @@
 	const char *name;
 	const char *info;
 
-	check_length(len, 9, "GRFInfo");
+	check_length(len, 8, "GRFInfo");
 	version = buf[1];
 	/* this is de facto big endian - grf_load_dword() unsuitable */
 	grfid = buf[2] << 24 | buf[3] << 16 | buf[4] << 8 | buf[5];