diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-18 15:34:36 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-18 15:34:36 +0000 |
commit | 136359ecbd81926d3d18868477782ce1d8c1fa50 (patch) | |
tree | 8fe6ec75145214f79dcd282a8fc140ae3efe6b91 | |
parent | ca082f188a38625eedeb7a6cd68e8a7a651a486a (diff) | |
download | openttd-136359ecbd81926d3d18868477782ce1d8c1fa50.tar.xz |
(svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working.
-rw-r--r-- | newgrf_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_text.c b/newgrf_text.c index 29f2c53d2..85f3cd32f 100644 --- a/newgrf_text.c +++ b/newgrf_text.c @@ -293,7 +293,7 @@ void SetCurrentGrfLangID(const char *iso_name) ret = GRFLX_ENGLISH; for (i=0; i < lengthof(iso_codes); i++) { - if (strncmp(iso_codes[i].code, iso_name, strlen(iso_codes[i].code) == 0)) { + if (strncmp(iso_codes[i].code, iso_name, strlen(iso_codes[i].code)) == 0) { /* We found a match, so let's use it. */ ret = i; break; |