From 136359ecbd81926d3d18868477782ce1d8c1fa50 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 18 May 2006 15:34:36 +0000 Subject: [PATCH] (svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working. --- newgrf_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newgrf_text.c b/newgrf_text.c index 29f2c53d23..85f3cd32fe 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;