diff options
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c index 8a7c4954e..67fff0289 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1677,7 +1677,7 @@ static int32 ClickChangeDateCheat(int32 p1, int32 p2) YearMonthDay ymd; ConvertDayToYMD(&ymd, _date); - if ((ymd.year == 0 && p2 == -1) || (ymd.year == 170 && p2 == 1)) return _cur_year; + if ((BASE_YEAR + ymd.year == MIN_YEAR && p2 == -1) || (BASE_YEAR + ymd.year == MAX_YEAR && p2 == 1)) return _cur_year; SetDate(ConvertYMDToDay(_cur_year + p2, ymd.month, ymd.day)); EnginesMonthlyLoop(); |