1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 00:19:09 +00:00

Fix #7165: Const overload SmallMap::Contains(key) compared wrong types.

Const and non-const Find() have different return types.
This commit is contained in:
Michael Lutz
2019-03-28 00:15:51 +01:00
committed by Charles Pigott
parent ee260e4704
commit 21d9e87b46

View File

@@ -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();
}
/**