summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-25 18:52:12 +0000
committerrubidium <rubidium@openttd.org>2013-06-25 18:52:12 +0000
commitb4106e686b113ee1fa704b1bf7a10be179cf4fcc (patch)
treeeb4db54562bb94d9be5ea38019f6d3a1ca387036 /src
parent9bb031533d7d8745a8dd5b403e9737e5b3d3cccf (diff)
downloadopenttd-b4106e686b113ee1fa704b1bf7a10be179cf4fcc.tar.xz
(svn r25461) -Fix: MSVC compiler warning
Diffstat (limited to 'src')
-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. */