summaryrefslogtreecommitdiff
path: root/src/elrail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r--src/elrail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp
index 3734b919b..9aedfc6e5 100644
--- a/src/elrail.cpp
+++ b/src/elrail.cpp
@@ -315,7 +315,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
};
SpriteID pylon_base = (halftile_corner != CORNER_INVALID && HasBit(edge_corners[i], halftile_corner)) ? pylon_halftile : pylon_normal;
TileIndex neighbour = ti->tile + TileOffsByDiagDir(i);
- byte elevation = GetPCPElevation(ti->tile, i);
+ int elevation = GetPCPElevation(ti->tile, i);
/* Here's one of the main headaches. GetTileSlope does not correct for possibly
* existing foundataions, so we do have to do that manually later on.*/