summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 41849b8a2..311a936ed 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -486,8 +486,7 @@ void EngineOverrideManager::ResetToDefaultMapping()
this->clear();
for (VehicleType type = VEH_TRAIN; type <= VEH_AIRCRAFT; type++) {
for (uint internal_id = 0; internal_id < _engine_counts[type]; internal_id++) {
- /*C++17: EngineIDMapping &eid = */ this->emplace_back();
- EngineIDMapping &eid = this->back();
+ EngineIDMapping &eid = this->emplace_back();
eid.type = type;
eid.grfid = INVALID_GRFID;
eid.internal_id = internal_id;