changeset 11093:1d2655421ce9 draft

(svn r15438) -Fix (r15434): MSVC performance warning
author glx <glx@openttd.org>
date Tue, 10 Feb 2009 04:23:37 +0000
parents 3ff2dacbbc5e
children 6a6a59f20daf
files src/station_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1012,7 +1012,7 @@
 
 	/* 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) {