early-access version 3003

This commit is contained in:
pineappleEA
2022-10-07 18:30:04 +02:00
parent ad55ba4f65
commit 9990be03f3
4 changed files with 29 additions and 62 deletions

View File

@@ -167,7 +167,7 @@ struct AmiiboDate {
bool IsValidDate() const {
const bool is_day_valid = GetDay() > 0 && GetDay() < 32;
const bool is_month_valid = GetMonth() >= 0 && GetMonth() < 13;
const bool is_month_valid = GetMonth() > 0 && GetMonth() < 13;
const bool is_year_valid = GetYear() >= 2000;
return is_year_valid && is_month_valid && is_day_valid;
}