summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-19 19:55:43 +0000
committertron <tron@openttd.org>2006-03-19 19:55:43 +0000
commit979f3f39576bedd9112ce7d1b34ff36941e98bf4 (patch)
tree59b65b7b9ce4d7f01aed89c84a2e356e74ea56c6
parent75a9419f04bf2256428907ecadd0c7b11887f3ad (diff)
downloadopenttd-979f3f39576bedd9112ce7d1b34ff36941e98bf4.tar.xz
(svn r3987) Fix another bug in r3979 *grumble*
-rw-r--r--water_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 3213424f6..952ab3145 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -522,7 +522,7 @@ static void TileLoopWaterHelper(TileIndex tile, const TileIndexDiffC *offs)
TrackBits tracks;
uint slope;
- if (!IsPlainRailTile(tile)) break;
+ if (!IsPlainRailTile(target)) break;
tracks = GetTrackBits(target);
slope = GetTileSlope(target, NULL);