summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index ac547d6af..dad84f79b 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1757,7 +1757,7 @@ static void AnimateTile_Track(TileIndex tile)
static void TileLoop_Track(TileIndex tile)
{
RailGroundType old_ground = GetRailGroundType(tile);
- RailGroundType new_ground = old_ground;
+ RailGroundType new_ground;
switch (_opt.landscape) {
case LT_HILLY: