mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
Fix a253205
: division by zero when attempting to format some short currencies
This commit is contained in:
parent
03e3553230
commit
360fe8b0b6
@ -404,7 +404,7 @@ void InitializeNumberFormats()
|
||||
loaded_number_abbreviations = !res.has_value();
|
||||
}
|
||||
if (!loaded_number_abbreviations) ParseNumberAbbreviations(_number_abbreviations, _current_language->number_abbreviations);
|
||||
_number_abbreviations.emplace_back(0, _number_format_separators);
|
||||
_number_abbreviations.emplace_back(1, _number_format_separators);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user