mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
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:
@@ -2699,7 +2699,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()
|
||||
|
||||
Reference in New Issue
Block a user