mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Use std::array::fill.
parent
c15aa20839
commit
0dc0eccdcb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue