summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newgrf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newgrf.c b/newgrf.c
index 6e6a03e1b..189557157 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2463,6 +2463,9 @@ static void ResetNewGRFData(void)
// Reset station classes
ResetStationClasses();
ResetCustomStations();
+
+ // Add engine type to engine data. This is needed for the refit precalculation.
+ AddTypeToEngines();
}
static void InitNewGRFFile(const char* filename, int sprite_offset)