diff --git a/uppsrc/Core/TimeDate.h b/uppsrc/Core/TimeDate.h index 48916996c..714cc64aa 100644 --- a/uppsrc/Core/TimeDate.h +++ b/uppsrc/Core/TimeDate.h @@ -19,7 +19,7 @@ struct Date : RelOps< Date, Moveable > { int Compare(Date b) const; Date& operator++() { if(day < 28) day++; else Set(Get() + 1); return *this; } - Date& operator--() { if(day > 0) day--; else Set(Get() - 1); return *this; } + Date& operator--() { if(day > 1) day--; else Set(Get() - 1); return *this; } Date() { year = -32768; day = month = 0; } Date(const Nuller&) { year = -32768; day = month = 0; }