diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-25 21:01:56 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | aa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (patch) | |
tree | 2b80f868a6e3e9df699f3b96bffb41b7b6f84125 /src/newgrf.cpp | |
parent | bc7dcaffca553b227fe895dc185e657d110c5ffe (diff) | |
download | openttd-aa7ca7fe64af51c2cd2400e3dec477dfbddadae3.tar.xz |
Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index f80e79f7d..6ff991441 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -637,7 +637,7 @@ static Engine *GetNewEngine(const GRFFile *file, VehicleType type, uint16 intern /* Reserve the engine slot */ if (!static_access) { - EngineIDMapping *eid = _engine_mngr.Get(engine); + EngineIDMapping *eid = _engine_mngr.data() + engine; eid->grfid = scope_grfid; // Note: this is INVALID_GRFID if dynamic_engines is disabled, so no reservation } |