summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-03-03 17:30:09 +0000
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitc01a2e2a81d8e7bcd47d46292ed0b7d452081c31 (patch)
treeb38441ec8469136a6a2252f8c856d22f14ee689e /src/newgrf_text.cpp
parent6570f7989f5c1fc5a1276505a8e6efce7838efd9 (diff)
downloadopenttd-c01a2e2a81d8e7bcd47d46292ed0b7d452081c31.tar.xz
Codechange: Removed SmallVector completely
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 57f2ce5e4..e1f73a5c3 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -167,7 +167,7 @@ static byte _currentLangID = GRFLX_ENGLISH; ///< by default, english is used.
*/
int LanguageMap::GetMapping(int newgrf_id, bool gender) const
{
- const SmallVector<Mapping, 1> &map = gender ? this->gender_map : this->case_map;
+ const std::vector<Mapping> &map = gender ? this->gender_map : this->case_map;
for (const Mapping &m : map) {
if (m.newgrf_id == newgrf_id) return m.openttd_id;
}
@@ -182,7 +182,7 @@ int LanguageMap::GetMapping(int newgrf_id, bool gender) const
*/
int LanguageMap::GetReverseMapping(int openttd_id, bool gender) const
{
- const SmallVector<Mapping, 1> &map = gender ? this->gender_map : this->case_map;
+ const std::vector<Mapping> &map = gender ? this->gender_map : this->case_map;
for (const Mapping &m : map) {
if (m.openttd_id == openttd_id) return m.newgrf_id;
}