summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-13 07:59:20 +0000
committermaedhros <maedhros@openttd.org>2007-06-13 07:59:20 +0000
commitbfecf0268dd59561ea1698db7d293ec4f1f5e7a0 (patch)
treedc8ab5582b07a9b87952828c4accfbd40e13f8dc /src/newgrf_text.cpp
parentcb54a561ef254eb599c6ef638b896690a77c944a (diff)
downloadopenttd-bfecf0268dd59561ea1698db7d293ec4f1f5e7a0.tar.xz
(svn r10130) -Fix (r4493): SetCurrentGrfLangID returned the wrong language ids for most languages.
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp2
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;
}
}