From e301630322eea410c3cf42eb314065776502ae61 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 3 Oct 2025 22:28:28 +0100 Subject: [PATCH] Fix f6c5da4cad: dump_info should not reverse non-ASCII label. (#14697) Cargo/rail/road types labels are already in appropriate endian-ness. --- src/console_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 3f42c13c7e..27f32a3abe 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -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()