newgrf_text.c
changeset 3868 2de0afd113ff
parent 3856 00418a7438be
child 4299 91f5d2bedcff
equal deleted inserted replaced
3867:fc05c6b14ff0 3868:2de0afd113ff
   291 
   291 
   292 	/* Use English by default, if we can't match up the iso_code. */
   292 	/* Use English by default, if we can't match up the iso_code. */
   293 	ret = GRFLX_ENGLISH;
   293 	ret = GRFLX_ENGLISH;
   294 
   294 
   295 	for (i=0; i < lengthof(iso_codes); i++) {
   295 	for (i=0; i < lengthof(iso_codes); i++) {
   296 		if (strncmp(iso_codes[i].code, iso_name, strlen(iso_codes[i].code) == 0)) {
   296 		if (strncmp(iso_codes[i].code, iso_name, strlen(iso_codes[i].code)) == 0) {
   297 			/* We found a match, so let's use it. */
   297 			/* We found a match, so let's use it. */
   298 			ret = i;
   298 			ret = i;
   299 			break;
   299 			break;
   300 		}
   300 		}
   301 	}
   301 	}