mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:00:06 +00:00
Prevent the radar product cache limit from being set too small
This commit is contained in:
parent
f7949cc404
commit
881502c970
2 changed files with 2 additions and 1 deletions
|
|
@ -1480,7 +1480,7 @@ std::vector<std::string> RadarProductManager::GetLevel3Products()
|
|||
|
||||
void RadarProductManager::SetCacheLimit(size_t cacheLimit)
|
||||
{
|
||||
p->cacheLimit_ = cacheLimit;
|
||||
p->cacheLimit_ = std::max<std::size_t>(cacheLimit, 6u);
|
||||
}
|
||||
|
||||
void RadarProductManager::UpdateAvailableProducts()
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ public:
|
|||
|
||||
/**
|
||||
* @brief Set the maximum number of products of each type that may be cached.
|
||||
* The cache limit cannot be set lower than 6.
|
||||
*
|
||||
* @param [in] cacheLimit The maximum number of products of each type
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue