summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-02 22:40:39 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-02 22:40:39 +0000
commitf55153ce3c8280200dd50b02e460bb486bb59aaf (patch)
tree425ea95a1c67b48fad4a35308b29f86a59f6c903
parenteeeebf9f6dd42b522c47f09e81fec6b9a033ec42 (diff)
downloadopenttd-f55153ce3c8280200dd50b02e460bb486bb59aaf.tar.xz
(svn r3360) Fix initialization of engines for precalculation of default refit mask.
-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)