summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-27 06:36:14 +0000
committerrubidium <rubidium@openttd.org>2011-02-27 06:36:14 +0000
commit9ce2823959025cca9d13c68e6ab06b9e0287440c (patch)
tree2963f0cf25cc353f1230cd34fb8fed1d2fafb1a3 /src
parent3e5924b10f9b301c573f16141e2ffd5038fcebc2 (diff)
downloadopenttd-9ce2823959025cca9d13c68e6ab06b9e0287440c.tar.xz
(svn r22153) -Fix [FS#4536]: The Greek translation didn't work as it breached the 200.000 bytes "limit" for loading language files
Diffstat (limited to 'src')
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index d5bbabc01..d123f9874 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1457,7 +1457,7 @@ bool ReadLanguagePack(const LanguageMetadata *lang)
{
/* Current language pack */
size_t len;
- LanguagePack *lang_pack = (LanguagePack *)ReadFileToMem(lang->file, &len, 200000);
+ LanguagePack *lang_pack = (LanguagePack *)ReadFileToMem(lang->file, &len, 1U << 20);
if (lang_pack == NULL) return false;
/* End of read data (+ terminating zero added in ReadFileToMem()) */