From a938067d6b4526cdc48fa35140b95f4df9bb398e Mon Sep 17 00:00:00 2001 From: Joan Josep Date: Fri, 25 Aug 2023 14:29:51 +0200 Subject: [PATCH] Codechange: Invalid depot value is unrelated to invalid station value. (#11227) --- src/depot_type.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/depot_type.h b/src/depot_type.h index 322990c3e3..4e61c1bcbd 100644 --- a/src/depot_type.h +++ b/src/depot_type.h @@ -10,12 +10,10 @@ #ifndef DEPOT_TYPE_H #define DEPOT_TYPE_H -#include "station_type.h" - typedef uint16_t DepotID; ///< Type for the unique identifier of depots. struct Depot; -static const DepotID INVALID_DEPOT = (DepotID)INVALID_STATION; +static const DepotID INVALID_DEPOT = UINT16_MAX; static const uint MAX_LENGTH_DEPOT_NAME_CHARS = 32; ///< The maximum length of a depot name in characters including '\0'