mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(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) {
|
if (lang == NULL) {
|
||||||
grfmsg(1, "GlobalVarChangeInfo: Language %d is not known, ignoring", curidx);
|
grfmsg(1, "GlobalVarChangeInfo: Language %d is not known, ignoring", curidx);
|
||||||
/* Skip over the data. */
|
/* Skip over the data. */
|
||||||
while (buf->ReadByte() != 0) {
|
if (prop == 0x15) {
|
||||||
buf->ReadString();
|
buf->ReadByte();
|
||||||
|
} else {
|
||||||
|
while (buf->ReadByte() != 0) {
|
||||||
|
buf->ReadString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user