summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 2cd20eb7d..0589f84b7 100644
--- a/openttd.c
+++ b/openttd.c
@@ -46,6 +46,7 @@
#include "waypoint.h"
#include "ai/ai.h"
#include "train.h"
+#include "yapf/yapf.h"
#include "settings.h"
#include <stdarg.h>
@@ -1427,6 +1428,8 @@ bool AfterLoadGame(void)
}
}
+ YapfNotifyTrackLayoutChange(INVALID_TILE, INVALID_TRACK);
+
FOR_ALL_PLAYERS(p) p->avail_railtypes = GetPlayerRailtypes(p->index);
if (!CheckSavegameVersion(27)) AfterLoadStations();