mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:10:05 +00:00
Sometimes level 3 records aren't found by time, ensure a best-effort is always selected
This commit is contained in:
parent
af77db35a4
commit
690f60f3e3
1 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,11 @@ ReturnType GetBoundedElement(std::map<Key, T>& map, Key key)
|
||||||
// looking for
|
// looking for
|
||||||
element = (--it)->second;
|
element = (--it)->second;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// The current element is a good substitute
|
||||||
|
element = it->second;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (map.size() > 0)
|
else if (map.size() > 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue