diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-25 21:20:24 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 097328c3d73520834b4ef801945c4f57f9eca0cd (patch) | |
tree | b128c52ecba8fecc8bec436b5517faf0f976d5d2 /src/openttd.cpp | |
parent | aa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (diff) | |
download | openttd-097328c3d73520834b4ef801945c4f57f9eca0cd.tar.xz |
Codechange: Replaced SmallVector::Get() const with std alternatives
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index b78084145..5478ec5a2 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1186,7 +1186,7 @@ static void CheckCaches() uint i = 0; FOR_ALL_TOWNS(t) { - if (MemCmpT(old_town_caches.Get(i), &t->cache) != 0) { + if (MemCmpT(old_town_caches.data() + i, &t->cache) != 0) { DEBUG(desync, 2, "town cache mismatch: town %i", (int)t->index); } i++; @@ -1202,7 +1202,7 @@ static void CheckCaches() i = 0; FOR_ALL_COMPANIES(c) { - if (MemCmpT(old_infrastructure.Get(i), &c->infrastructure) != 0) { + if (MemCmpT(old_infrastructure.data() + i, &c->infrastructure) != 0) { DEBUG(desync, 2, "infrastructure cache mismatch: company %i", (int)c->index); } i++; |