Changeset - r11093:c6ce95d4d1f7
[Not reviewed]
master
0 1 0
glx - 16 years ago 2009-02-10 04:23:37
glx@openttd.org
(svn r15438) -Fix (r15434): MSVC performance warning
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -1009,13 +1009,13 @@ CommandCost CmdBuildRailroadStation(Tile
 

	
 
	/* Check if the given station class is valid */
 
	if (GB(p2, 0, 8) >= GetNumStationClasses()) return CMD_ERROR;
 

	
 
	/* 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) {
 
		/* Perform NewStation checks */
 

	
 
		/* Check if the station size is permitted */
0 comments (0 inline, 0 general)