summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-02-20 21:35:41 +0000
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit297fd3dda3abe353ebe2fe77c67b011e24d403bc (patch)
tree916615e2c4e8eaeed982b9293bea3b76a0a29374 /src/rail_cmd.cpp
parent2bc2de9034d3b75a253b849cf7a703b1a503e200 (diff)
downloadopenttd-297fd3dda3abe353ebe2fe77c67b011e24d403bc.tar.xz
Codechange: Replaced SmallVector::Include() with include()
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 3a24fb65f..c6548eefb 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1534,7 +1534,7 @@ static Vehicle *UpdateTrainPowerProc(Vehicle *v, void *data)
if (v->type != VEH_TRAIN) return NULL;
TrainList *affected_trains = static_cast<TrainList*>(data);
- affected_trains->Include(Train::From(v)->First());
+ include(*affected_trains, Train::From(v)->First());
return NULL;
}