newgrf_text.c
changeset 3868 363ae2b6b55c
parent 3856 6b6870aa2691
child 4299 b86602eaaff1
equal deleted inserted replaced
3867:20e63b1c8ceb 3868:363ae2b6b55c
   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 	}