summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'date.c')
-rw-r--r--date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/date.c b/date.c
index b2feeaff5..dad1aa47b 100644
--- a/date.c
+++ b/date.c
@@ -282,7 +282,7 @@ void IncreaseDate(void)
#endif /* ENABLE_NETWORK */
/* check if we reached end of the game */
- if (_cur_year == _patches.ending_date - MAX_YEAR_BEGIN_REAL) {
+ if (_cur_year == _patches.ending_year - MAX_YEAR_BEGIN_REAL) {
ShowEndGameChart();
/* check if we reached the maximum year, decrement dates by a year */
} else if (_cur_year == (MAX_YEAR_END + 1)) {