summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-07 18:35:59 +0000
committerrubidium <rubidium@openttd.org>2010-11-07 18:35:59 +0000
commit28ed77c35421310fdcc8c4b02ea363a8d22ef02e (patch)
tree5af19f2f81f62f4718c17b2db4a6991bdf1be63d /src/strings.cpp
parenta89fed21c78df05b18e30dcb72cef60331d24556 (diff)
downloadopenttd-28ed77c35421310fdcc8c4b02ea363a8d22ef02e.tar.xz
(svn r21113) -Codechange: remove the amount of places where the language pack identifier magic value is
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 912acfe65..5b318f20c 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1314,7 +1314,7 @@ bool ReadLanguagePack(int lang_index)
/* We need at least one byte of lang_pack->data */
if (end <= lang_pack->data ||
- lang_pack->ident != TO_LE32(LANGUAGE_PACK_IDENT) ||
+ lang_pack->ident != TO_LE32(LanguagePackHeader::IDENT) ||
lang_pack->version != TO_LE32(LANGUAGE_PACK_VERSION)) {
free(lang_pack);
return false;
@@ -1453,7 +1453,7 @@ static bool GetLanguageFileHeader(const char *file, LanguagePack *hdr)
fclose(f);
bool ret = read == 1 &&
- hdr->ident == TO_LE32(LANGUAGE_PACK_IDENT) &&
+ hdr->ident == TO_LE32(LanguagePackHeader::IDENT) &&
hdr->version == TO_LE32(LANGUAGE_PACK_VERSION);
/* Convert endianness for the windows language ID */