summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elrail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elrail.c b/elrail.c
index 720f9dbe0..a429e8e9b 100644
--- a/elrail.c
+++ b/elrail.c
@@ -283,7 +283,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
IsBridgeTile(ti->tile) &&
IsBridgeMiddle(ti->tile) &&
!(_display_opt & DO_TRANS_BUILDINGS) &&
- GetBridgeHeight(t) <= TilePixelHeight(t)
+ GetBridgeHeight(ti->tile) <= TilePixelHeight(ti->tile)
) return;
assert(PCPconfig != 0); /* We have a pylon on neither end of the wire, that doesn't work (since we have no sprites for that) */