(svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working.
authorpeter1138
Thu, 18 May 2006 15:34:36 +0000
changeset 3868 2de0afd113ff
parent 3867 fc05c6b14ff0
child 3869 0467c594dfb5
(svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working.
newgrf_text.c
--- a/newgrf_text.c	Thu May 18 02:52:07 2006 +0000
+++ b/newgrf_text.c	Thu May 18 15:34:36 2006 +0000
@@ -293,7 +293,7 @@
 	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;