mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 19:02:41 +01:00
Codechange: C++ initialise LanguageHeaderPack
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "../stdafx.h"
|
||||
#include "../core/endian_func.hpp"
|
||||
#include "../core/mem_func.hpp"
|
||||
#include "../core/math_func.hpp"
|
||||
#include "../error_func.h"
|
||||
#include "../string_func.h"
|
||||
#include "../core/string_builder.hpp"
|
||||
@@ -588,10 +589,7 @@ void StringReader::ParseFile()
|
||||
_strgen.file = this->file;
|
||||
|
||||
/* For each new file we parse, reset the genders, and language codes. */
|
||||
MemSetT(&_strgen.lang, 0);
|
||||
strecpy(_strgen.lang.digit_group_separator, ",");
|
||||
strecpy(_strgen.lang.digit_group_separator_currency, ",");
|
||||
strecpy(_strgen.lang.digit_decimal_separator, ".");
|
||||
_strgen.lang = {};
|
||||
|
||||
_strgen.cur_line = 1;
|
||||
while (this->data.next_string_id < this->data.max_strings) {
|
||||
|
||||
Reference in New Issue
Block a user