summaryrefslogtreecommitdiff
path: root/newgrf_text.c
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
commitfa39815308dd6b61abd16130e650a7d0f4993e04 (patch)
tree8fe6ec75145214f79dcd282a8fc140ae3efe6b91 /newgrf_text.c
parentc323138492e7394073919937fc26794796ed85c7 (diff)
downloadopenttd-fa39815308dd6b61abd16130e650a7d0f4993e04.tar.xz
(svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working.
Diffstat (limited to 'newgrf_text.c')
-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;