diff options
author | peter1138 <peter1138@openttd.org> | 2005-10-01 17:41:41 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-10-01 17:41:41 +0000 |
commit | 0c6d899818a48f13af4f9fa0c19e778873ce9849 (patch) | |
tree | ceeacc798a5e82e8ed759c60fb8dbb8ee4ae57d4 /newgrf.c | |
parent | 0941c388d9aa10f2aa7e62a8d3092620b15a9cc4 (diff) | |
download | openttd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |