summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp8
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;
}