mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed bug in 1383c04
This commit is contained in:
@ -96,12 +96,8 @@ void MeasureCalc::ReadOptions(ConfigParser& parser, const WCHAR* section)
|
||||
m_UpdateRandom = parser.ReadBool(section, L"UpdateRandom", false);
|
||||
const size_t range = (m_HighBound - m_LowBound) + 1;
|
||||
|
||||
m_UniqueRandom = parser.ReadBool(section, L"UniqueRandom", false);
|
||||
if (m_UniqueRandom && range > DEFAULT_UNIQUELIMIT)
|
||||
{
|
||||
m_UniqueRandom = false;
|
||||
}
|
||||
else if (!m_UniqueRandom)
|
||||
m_UniqueRandom = (range <= DEFAULT_UNIQUELIMIT) && parser.ReadBool(section, L"UniqueRandom", false);
|
||||
if (!m_UniqueRandom)
|
||||
{
|
||||
m_UniqueNumbers.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user