summaryrefslogtreecommitdiff
path: root/elrail.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-30 15:47:18 +0000
committercelestar <celestar@openttd.org>2006-03-30 15:47:18 +0000
commit1f17d91b47294e761901ba86a541b32ee1587fb4 (patch)
tree274b670ae7224fd810c616aa53798217934a992c /elrail.c
parent94ca804e4f63106a7a2019660e3d0b214d737e20 (diff)
downloadopenttd-1f17d91b47294e761901ba86a541b32ee1587fb4.tar.xz
(svn r4180) -Fix: Fixed an assert in the elrail drawing code due to passing of a wrong variable. I wish the compiler would warn about different enum types used...
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 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) */