fix snow storm enable condition check

This commit is contained in:
Crypto City 2022-06-05 07:41:42 +00:00
parent 6b2211365a
commit f654ba68ec

View File

@ -198,7 +198,7 @@ static bool enable_snowstorm_events(const cryptonote::BlockchainDB &db, uint32_t
uint32_t day, month, year;
cc::get_calendar_date(height, NULL, day, month, year);
return year > START_YEAR && month <= 3 || month >= 9;
return year > START_YEAR && (month <= 3 || month >= 9);
}
static bool enable_moose_disease(const cryptonote::BlockchainDB &db, uint32_t city)