1
0
Fork 0

Codechange: Use std::array::fill.

pull/11349/head
Peter Nelson 2023-10-05 07:29:59 +01:00
parent c15aa20839
commit 0dc0eccdcb
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -8850,7 +8850,7 @@ void ResetPersistentNewGRFData()
*/
static void BuildCargoTranslationMap()
{
std::fill(std::begin(_cur.grffile->cargo_map), std::end(_cur.grffile->cargo_map), uint8_t{UINT8_MAX});
_cur.grffile->cargo_map.fill(UINT8_MAX);
for (CargoID c = 0; c < NUM_CARGO; c++) {
const CargoSpec *cs = CargoSpec::Get(c);