1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

Codechange: Use std::array::fill.

This commit is contained in:
2023-10-05 07:29:59 +01:00
parent c15aa20839
commit 0dc0eccdcb

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);