summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2021-01-07 21:28:20 +0000
committerCharles Pigott <charlespigott@googlemail.com>2021-01-07 21:42:10 +0000
commit79d938b9570be94381cf61190d60bfc847fb8c4c (patch)
treefbc8f658e5fdff384cd11aa5feb8bb9b8f819df6 /src/station_cmd.cpp
parent725d793be16636ef7f7c3d4a479f0d2523a5d83c (diff)
downloadopenttd-79d938b9570be94381cf61190d60bfc847fb8c4c.tar.xz
Fix 0125892: Warning about unsigned unary minus
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index d06178fc4..5a4d13c47 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2031,7 +2031,7 @@ static CommandCost RemoveRoadStop(TileIndex tile, DoCommandFlag flags)
/* Update company infrastructure counts. */
FOR_ALL_ROADTRAMTYPES(rtt) {
RoadType rt = GetRoadType(tile, rtt);
- UpdateCompanyRoadInfrastructure(rt, GetRoadOwner(tile, rtt), -ROAD_STOP_TRACKBIT_FACTOR);
+ UpdateCompanyRoadInfrastructure(rt, GetRoadOwner(tile, rtt), -static_cast<int>(ROAD_STOP_TRACKBIT_FACTOR));
}
Company::Get(st->owner)->infrastructure.station--;