summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2019-03-28 00:15:51 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-03-28 00:04:28 +0000
commit21d9e87b46445dcb7828d1272f03e768ee67c37d (patch)
tree15346514c7e07f30a9fafbf2a20ce64a11a7bc0d /src/core
parentee260e4704edf4da23cd6cdf06b8b045badd3f7c (diff)
downloadopenttd-21d9e87b46445dcb7828d1272f03e768ee67c37d.tar.xz
Fix #7165: Const overload SmallMap::Contains(key) compared wrong types.
Const and non-const Find() have different return types.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/smallmap_type.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/smallmap_type.hpp b/src/core/smallmap_type.hpp
index 7cd6357ee..bdb6ed475 100644
--- a/src/core/smallmap_type.hpp
+++ b/src/core/smallmap_type.hpp
@@ -95,7 +95,7 @@ struct SmallMap : std::vector<SmallPair<T, U> > {
*/
inline bool Contains(const T &key) const
{
- return this->Find(key) != this->End();
+ return this->Find(key) != std::vector<Pair>::end();
}
/**