Codechange: rename byte to uint8_t (#12308)
This commit is contained in:
@@ -19,7 +19,7 @@ static const LinkGraphJobID INVALID_LINK_GRAPH_JOB = UINT16_MAX;
|
||||
typedef uint16_t NodeID;
|
||||
static const NodeID INVALID_NODE = UINT16_MAX;
|
||||
|
||||
enum DistributionType : byte {
|
||||
enum DistributionType : uint8_t {
|
||||
DT_BEGIN = 0,
|
||||
DT_MIN = 0,
|
||||
DT_MANUAL = 0, ///< Manual distribution. No link graph calculations are run.
|
||||
|
||||
@@ -102,7 +102,7 @@ bool LinkRefresher::HandleRefit(CargoID refit_cargo)
|
||||
|
||||
/* Back up the vehicle's cargo type */
|
||||
CargoID temp_cid = v->cargo_type;
|
||||
byte temp_subtype = v->cargo_subtype;
|
||||
uint8_t temp_subtype = v->cargo_subtype;
|
||||
v->cargo_type = this->cargo;
|
||||
v->cargo_subtype = GetBestFittingSubType(v, v, this->cargo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user