mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: use EnumBitSet for CargoTypes
This commit is contained in:
committed by
Peter Nelson
parent
962a550d1b
commit
c45aa3c9b6
+1
-1
@@ -1458,7 +1458,7 @@ static void FormatString(StringBuilder &builder, std::string_view str_arg, Strin
|
||||
|
||||
std::string_view list_separator = GetListSeparator();
|
||||
for (const auto &cs : _sorted_cargo_specs) {
|
||||
if (!HasBit(cmask, cs->Index())) continue;
|
||||
if (!cmask.Test(cs->Index())) continue;
|
||||
|
||||
if (first) {
|
||||
first = false;
|
||||
|
||||
Reference in New Issue
Block a user