summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-18 15:34:36 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-18 15:34:36 +0000
commit136359ecbd81926d3d18868477782ce1d8c1fa50 (patch)
tree8fe6ec75145214f79dcd282a8fc140ae3efe6b91
parentca082f188a38625eedeb7a6cd68e8a7a651a486a (diff)
downloadopenttd-136359ecbd81926d3d18868477782ce1d8c1fa50.tar.xz
(svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working.
-rw-r--r--newgrf_text.c2
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;