summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;