summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-21 19:21:38 +0000
committerrubidium <rubidium@openttd.org>2011-08-21 19:21:38 +0000
commit525e2c9e73ecab8913d4eafc6685d89e1653d151 (patch)
tree84ca4031ce61c9b040d1aae0a152bb5da5ea35a6 /src/strings.cpp
parentf6b0561cd86f363c93b64817f26e3ed7f5b1b688 (diff)
downloadopenttd-525e2c9e73ecab8913d4eafc6685d89e1653d151.tar.xz
(svn r22806) -Codechange: store the number of untranslated strings in the language file
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 09f2243c7..cf2f60348 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1657,7 +1657,10 @@ static bool GetLanguageFileHeader(const char *file, LanguagePackHeader *hdr)
bool ret = read == 1 && hdr->IsValid();
/* Convert endianness for the windows language ID */
- if (ret) hdr->winlangid = FROM_LE16(hdr->winlangid);
+ if (ret) {
+ hdr->missing = FROM_LE16(hdr->missing);
+ hdr->winlangid = FROM_LE16(hdr->winlangid);
+ }
return ret;
}