summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-02-10 04:23:37 +0000
committerglx <glx@openttd.org>2009-02-10 04:23:37 +0000
commita16a970e845633ff9eef8a258d19d52477e64078 (patch)
tree316174ef08f03f45c6def440bb0cfc439fbea06b
parent4574858f0a764169cccd2ea41ba2a231f89ef42c (diff)
downloadopenttd-a16a970e845633ff9eef8a258d19d52477e64078.tar.xz
(svn r15438) -Fix (r15434): MSVC performance warning
-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 62760f318..1facc4edf 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1012,7 +1012,7 @@ CommandCost CmdBuildRailroadStation(TileIndex tile_org, DoCommandFlag flags, uin
/* Check if we can allocate a custom stationspec to this station */
const StationSpec *statspec = GetCustomStationSpec((StationClassID)GB(p2, 0, 8), GB(p2, 8, 8));
- int specindex = AllocateSpecToStation(statspec, st, flags & DC_EXEC);
+ int specindex = AllocateSpecToStation(statspec, st, (flags & DC_EXEC) != 0);
if (specindex == -1) return_cmd_error(STR_TOO_MANY_STATION_SPECS);
if (statspec != NULL) {