From 0c6d899818a48f13af4f9fa0c19e778873ce9849 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 1 Oct 2005 17:41:41 +0000 Subject: (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index c9f244149..640f4c013 100644 --- a/newgrf.c +++ b/newgrf.c @@ -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]; -- cgit v1.2.3-54-g00ecf