summaryrefslogtreecommitdiff
path: root/elrail.c
diff options
context:
space:
mode:
Diffstat (limited to 'elrail.c')
-rw-r--r--elrail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elrail.c b/elrail.c
index 6e6a02311..9d2f92d32 100644
--- a/elrail.c
+++ b/elrail.c
@@ -183,7 +183,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
AdjustTileh(ti->tile, &tileh[TS_HOME]);
for (i = DIAGDIR_NE; i < DIAGDIR_END; i++) {
- TileIndex neighbour = ti->tile + TileOffsByDir(i);
+ TileIndex neighbour = ti->tile + TileOffsByDiagDir(i);
uint foundation = 0;
int k;