diff options
author | tron <tron@openttd.org> | 2006-08-31 22:07:49 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-31 22:07:49 +0000 |
commit | fcc62d0258c48bebe01259598f95ecf9c66dc04d (patch) | |
tree | 54bfb2a2b53205c59310c9a3c9482ba1bd944a80 /strings.c | |
parent | f9cdec4da5245bc7f4bb12d3a8aa54dc6a46712e (diff) | |
download | openttd-fcc62d0258c48bebe01259598f95ecf9c66dc04d.tar.xz |
(svn r6288) -Regression: Restore automatic language detection, which was broken in r4886 when the language codes got extended
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1250,7 +1250,7 @@ void InitializeLanguagePacks(void) dl->ent[m].name = strdup(hdr.name); if (strcmp(hdr.name, "English") == 0) fallback = m; - if (strcmp(hdr.isocode, lang) == 0) def = m; + if (strncmp(hdr.isocode, lang, 2) == 0) def = m; m++; } |