From 2d6fe7d9c659eadaecc233bf64a7b1ba58a64b8e Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 23 Jan 2026 22:37:16 +0000 Subject: [PATCH] Codefix: incorrect indentation for GetCargoTranslationTable (#15156) --- src/newgrf.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 55f3708422..ee910556a7 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -519,17 +519,17 @@ void ResetPersistentNewGRFData() * @param grffile GRF file. * @returns Readonly cargo translation table to use. */ - std::span GetCargoTranslationTable(const GRFFile &grffile) - { - /* Always use the translation table if it's installed. */ - if (!grffile.cargo_list.empty()) return grffile.cargo_list; +std::span GetCargoTranslationTable(const GRFFile &grffile) +{ + /* Always use the translation table if it's installed. */ + if (!grffile.cargo_list.empty()) return grffile.cargo_list; - /* Pre-v7 use climate-dependent "slot" table. */ - if (grffile.grf_version < 7) return GetClimateDependentCargoTranslationTable(); + /* Pre-v7 use climate-dependent "slot" table. */ + if (grffile.grf_version < 7) return GetClimateDependentCargoTranslationTable(); - /* Otherwise use climate-independent "bitnum" table. */ - return GetClimateIndependentCargoTranslationTable(); - } + /* Otherwise use climate-independent "bitnum" table. */ + return GetClimateIndependentCargoTranslationTable(); +} /** * Construct the Cargo Mapping