mirror of https://github.com/OpenRCT2/OpenRCT2.git
EnumMap: support maps with only one item
This commit is contained in:
parent
4bb5b07500
commit
f280fc56e0
|
@ -62,7 +62,7 @@ public:
|
|||
{
|
||||
std::sort(_map.begin(), _map.end(), [](const auto& a, const auto& b) { return a.second < b.second; });
|
||||
|
||||
if constexpr (ValueIndexable())
|
||||
if (ValueIndexable() && _map.size() > 1)
|
||||
{
|
||||
_continiousValueIndex = true;
|
||||
T cur{};
|
||||
|
|
Loading…
Reference in New Issue