mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r23788) -Fix: failure to load newgrf files that use action 0 general prop 15 with a missing language file
This commit is contained in:
parent
89ab59f0cb
commit
ec54f39db5
|
@ -2518,8 +2518,12 @@ static ChangeInfoResult GlobalVarChangeInfo(uint gvid, int numinfo, int prop, By
|
|||
if (lang == NULL) {
|
||||
grfmsg(1, "GlobalVarChangeInfo: Language %d is not known, ignoring", curidx);
|
||||
/* Skip over the data. */
|
||||
while (buf->ReadByte() != 0) {
|
||||
buf->ReadString();
|
||||
if (prop == 0x15) {
|
||||
buf->ReadByte();
|
||||
} else {
|
||||
while (buf->ReadByte() != 0) {
|
||||
buf->ReadString();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue