summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-13 08:14:15 +0000
committerPeterN <peter@fuzzle.org>2019-03-13 08:40:25 +0000
commitb00a861467b9c7ea62bae2df140975f0838e0ea7 (patch)
treecfef7d5353fe43020ae0f5142c2b6d8fb831a271 /src
parent6b92b83128d92e5b064649922780eadeee9c31ba (diff)
downloadopenttd-b00a861467b9c7ea62bae2df140975f0838e0ea7.tar.xz
Codechange: Make FindStationsAroundTile() out-parameter stations const to prevent incorrect modification.
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 df71da127..72c70456f 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -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 */