diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -162,7 +162,7 @@ static uint32_t GetCountAndDistanceOfClo /* Variables available during construction check. */ switch (variable) { - case 0x80: return this->tile; + case 0x80: return static_cast(this->tile); case 0x81: return GB(static_cast(this->tile), 8, 8); /* Pointer to the town the industry is associated with */ @@ -347,7 +347,7 @@ static uint32_t GetCountAndDistanceOfClo case 0x7C: return (this->industry->psa != nullptr) ? this->industry->psa->GetValue(parameter) : 0; /* Industry structure access*/ - case 0x80: return this->industry->location.tile; + case 0x80: return static_cast(this->industry->location.tile); case 0x81: return GB(static_cast(this->industry->location.tile), 8, 8); /* Pointer to the town the industry is associated with */ case 0x82: return this->industry->town->index;