summaryrefslogtreecommitdiff
path: root/src/newgrf_railtype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_railtype.cpp')
-rw-r--r--src/newgrf_railtype.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/newgrf_railtype.cpp b/src/newgrf_railtype.cpp
index b01b3b084..9650d0366 100644
--- a/src/newgrf_railtype.cpp
+++ b/src/newgrf_railtype.cpp
@@ -81,10 +81,7 @@ static inline void NewRailTypeResolver(ResolverObject *res, TileIndex tile, Tile
res->callback = CBID_NO_CALLBACK;
res->callback_param1 = 0;
res->callback_param2 = 0;
- res->last_value = 0;
- res->trigger = 0;
- res->reseed = 0;
- res->count = 0;
+ res->ResetState();
res->grffile = grffile;
}