From 4f8d06ff7365eb16e936225702b2246e3d9b364c Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 18 Sep 2023 20:31:01 +0100 Subject: [PATCH] Codechange: Use uint8_t instead of byte for numeric values. --- src/industry_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 120b10957a..db309fadfd 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -1948,11 +1948,11 @@ struct CargoesField { } industry; ///< Industry data (for #CFT_INDUSTRY). struct { CargoID vertical_cargoes[MAX_CARGOES]; ///< Cargoes running from top to bottom (cargo ID or #CT_INVALID). - byte num_cargoes; ///< Number of cargoes. + uint8_t num_cargoes; ///< Number of cargoes. CargoID supp_cargoes[MAX_CARGOES]; ///< Cargoes entering from the left (index in #vertical_cargoes, or #CT_INVALID). - byte top_end; ///< Stop at the top of the vertical cargoes. + uint8_t top_end; ///< Stop at the top of the vertical cargoes. CargoID cust_cargoes[MAX_CARGOES]; ///< Cargoes leaving to the right (index in #vertical_cargoes, or #CT_INVALID). - byte bottom_end; ///< Stop at the bottom of the vertical cargoes. + uint8_t bottom_end; ///< Stop at the bottom of the vertical cargoes. } cargo; ///< Cargo data (for #CFT_CARGO). struct { CargoID cargoes[MAX_CARGOES]; ///< Cargoes to display (or #CT_INVALID).