From bfecf0268dd59561ea1698db7d293ec4f1f5e7a0 Mon Sep 17 00:00:00 2001 From: maedhros Date: Wed, 13 Jun 2007 07:59:20 +0000 Subject: (svn r10130) -Fix (r4493): SetCurrentGrfLangID returned the wrong language ids for most languages. --- src/newgrf_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_text.cpp') diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index d05b0c2d3..74090d067 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -438,7 +438,7 @@ void SetCurrentGrfLangID(const char *iso_name) for (i=0; i < lengthof(iso_codes); i++) { 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; + ret = iso_codes[i].grfLangID; break; } } -- cgit v1.2.3-54-g00ecf