summaryrefslogtreecommitdiff
path: root/src/network/network_content.h
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-25 21:20:24 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit097328c3d73520834b4ef801945c4f57f9eca0cd (patch)
treeb128c52ecba8fecc8bec436b5517faf0f976d5d2 /src/network/network_content.h
parentaa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (diff)
downloadopenttd-097328c3d73520834b4ef801945c4f57f9eca0cd.tar.xz
Codechange: Replaced SmallVector::Get() const with std alternatives
Diffstat (limited to 'src/network/network_content.h')
-rw-r--r--src/network/network_content.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.h b/src/network/network_content.h
index a81cc6a6d..7cce7fc0a 100644
--- a/src/network/network_content.h
+++ b/src/network/network_content.h
@@ -133,7 +133,7 @@ public:
/** Get the begin of the content inf iterator. */
ConstContentIterator Begin() const { return this->infos.Begin(); }
/** Get the nth position of the content inf iterator. */
- ConstContentIterator Get(uint32 index) const { return this->infos.Get(index); }
+ ConstContentIterator Get(uint32 index) const { return this->infos.data() + index; }
/** Get the end of the content inf iterator. */
ConstContentIterator End() const { return this->infos.End(); }