1
0
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:
Rubidium
2025-05-06 18:33:22 +02:00
committed by rubidium42
parent 8f1e94c546
commit d70aeb72a7
3 changed files with 21 additions and 25 deletions

View File

@@ -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) {