Fix f6c5da4cad: dump_info should not reverse non-ASCII label. (#14697)

Cargo/rail/road types labels are already in appropriate endian-ness.
This commit is contained in:
Peter Nelson
2025-10-03 22:28:28 +01:00
committed by dP
parent 5563e9739d
commit e301630322

View File

@@ -2702,7 +2702,7 @@ static std::string FormatLabel(uint32_t label)
return fmt::format("{:c}{:c}{:c}{:c}", GB(label, 24, 8), GB(label, 16, 8), GB(label, 8, 8), GB(label, 0, 8));
}
return fmt::format("{:08X}", std::byteswap(label));
return fmt::format("{:08X}", label);
}
static void ConDumpRoadTypes()