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 | 4fe06ceeccee9fbadf620589b143fcc0801564b4 (patch) | |
tree | ceeacc798a5e82e8ed759c60fb8dbb8ee4ae57d4 | |
parent | adc5c1230fa62ff4ae3f6a2a2f13c5eb4908209d (diff) | |
download | openttd-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.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]; |