summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 306921731..79ca42795 100644
--- a/misc.c
+++ b/misc.c
@@ -683,6 +683,10 @@ void IncreaseDate(void)
FOR_ALL_VEHICLES(v) {
v->date_of_last_service -= 365; // 1 year is 365 days long
}
+
+ /* Because the _date wraps here, and text-messages expire by game-days, we have to clean out
+ * all of them if the date is set back, else those messages will hang for ever */
+ InitTextMessage();
}
if (_patches.auto_euro)