changeset 6887:f9048d03454b draft

(svn r10130) -Fix (r4493): SetCurrentGrfLangID returned the wrong language ids for most languages.
author maedhros <maedhros@openttd.org>
date Wed, 13 Jun 2007 07:59:20 +0000
parents 56eae6975d57
children 97bf922bdee2
files src/newgrf_text.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -438,7 +438,7 @@
 	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;
 		}
 	}