summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-10-01 17:41:41 +0000
committerpeter1138 <peter1138@openttd.org>2005-10-01 17:41:41 +0000
commit0c6d899818a48f13af4f9fa0c19e778873ce9849 (patch)
treeceeacc798a5e82e8ed759c60fb8dbb8ee4ae57d4 /newgrf.c
parent0941c388d9aa10f2aa7e62a8d3092620b15a9cc4 (diff)
downloadopenttd-0c6d899818a48f13af4f9fa0c19e778873ce9849.tar.xz
(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)
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
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];