(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)

This commit is contained in:
peter1138 2005-10-01 17:41:41 +00:00
parent adc5c1230f
commit 4fe06ceecc
1 changed files with 1 additions and 1 deletions

View File

@ -1919,7 +1919,7 @@ static void GRFInfo(byte *buf, int len)
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];