(svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working.

This commit is contained in:
peter1138 2006-05-18 15:34:36 +00:00
parent ca082f188a
commit 136359ecbd

View File

@ -293,7 +293,7 @@ void SetCurrentGrfLangID(const char *iso_name)
ret = GRFLX_ENGLISH; ret = GRFLX_ENGLISH;
for (i=0; i < lengthof(iso_codes); i++) { 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. */ /* We found a match, so let's use it. */
ret = i; ret = i;
break; break;