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
commitc5496ae092aaec5d3aeb16bbbfde470f6aeb229c (patch)
tree425ea95a1c67b48fad4a35308b29f86a59f6c903
parentd5ce50a405fa344cd070b35e0e31b68be5fab42e (diff)
downloadopenttd-c5496ae092aaec5d3aeb16bbbfde470f6aeb229c.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)