diff options
-rw-r--r-- | src/newgrf.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index b8c75107e..0e10667e8 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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; } |