summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 75c473e22..4b3daba5b 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -4224,8 +4224,8 @@ void FlowStatMap::FinalizeLocalConsumption(StationID self)
fs.ChangeShare(INVALID_STATION, -INT_MAX);
local -= INT_MAX;
}
- fs.ChangeShare(self, (int)-local);
- fs.ChangeShare(INVALID_STATION, (int)-local);
+ fs.ChangeShare(self, -(int)local);
+ fs.ChangeShare(INVALID_STATION, -(int)local);
/* If the local share is used up there must be a share for some
* remote station. */