mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: Make FindStationsAroundTile() out-parameter stations const to prevent incorrect modification.
This commit is contained in:
parent
6b92b83128
commit
b00a861467
|
@ -3820,10 +3820,10 @@ static void AddNearbyStationsByCatchment(TileIndex tile, StationList *stations,
|
|||
* Find all stations around a rectangular producer (industry, house, headquarter, ...)
|
||||
*
|
||||
* @param location The location/area of the producer
|
||||
* @param stations The list to store the stations in
|
||||
* @param[out] stations The list to store the stations in
|
||||
* @param use_nearby Use nearby station list of industry/town associated with location.tile
|
||||
*/
|
||||
void FindStationsAroundTiles(const TileArea &location, StationList *stations, bool use_nearby)
|
||||
void FindStationsAroundTiles(const TileArea &location, StationList * const stations, bool use_nearby)
|
||||
{
|
||||
if (use_nearby) {
|
||||
/* Industries and towns maintain a list of nearby stations */
|
||||
|
|
Loading…
Reference in New Issue