diff options
author | maedhros <maedhros@openttd.org> | 2007-06-13 07:59:20 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-06-13 07:59:20 +0000 |
commit | 860fe49b805527f5eb6ef8d14dd74b14cc392ee8 (patch) | |
tree | dc8ab5582b07a9b87952828c4accfbd40e13f8dc | |
parent | f477075a0b2234ab0eae048d1256f133927e3c38 (diff) | |
download | openttd-860fe49b805527f5eb6ef8d14dd74b14cc392ee8.tar.xz |
(svn r10130) -Fix (r4493): SetCurrentGrfLangID returned the wrong language ids for most languages.
-rw-r--r-- | src/newgrf_text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |