1
0
Fork 0

(svn r21370) -Fix: [NewGRF] a grf with an invalid action14 could cause an out of memory error

release/1.1
yexo 2010-12-02 19:21:13 +00:00
parent 6f549e54b5
commit 3df30280d4
1 changed files with 1 additions and 1 deletions

View File

@ -6697,7 +6697,7 @@ static bool HandleParameterInfo(ByteReader *buf)
uint32 id = buf->ReadDWord();
if (type != 'C' || id >= _cur_grfconfig->num_valid_params) {
grfmsg(2, "StaticGRFInfo: all child nodes of 'INFO'->'PARA' should have type 'C' and their parameter number as id");
if (!SkipUnknownInfo(buf, type)) return false;
return SkipUnknownInfo(buf, type);
}
if (id >= _cur_grfconfig->param_info.Length()) {