1
0
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:
Peter Nelson
2025-10-03 22:28:28 +01:00
committed by GitHub
parent 632ab6a4e5
commit 97674ac2a2

View File

@@ -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()