summaryrefslogtreecommitdiff
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
commit4fe06ceeccee9fbadf620589b143fcc0801564b4 (patch)
treeceeacc798a5e82e8ed759c60fb8dbb8ee4ae57d4
parentadc5c1230fa62ff4ae3f6a2a2f13c5eb4908209d (diff)
downloadopenttd-4fe06ceeccee9fbadf620589b143fcc0801564b4.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)
-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];