summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-07-31 21:43:40 +0000
committerfrosch <frosch@openttd.org>2015-07-31 21:43:40 +0000
commite9b25f2ee800bbbc0b4509218ed3ce953c6ccd21 (patch)
treee8cd9d21e50a61a4e6325d3570d56b0f5e79e341 /src
parent2b9506e4ddd1259b2c22e19c5aae55c82a6361aa (diff)
downloadopenttd-e9b25f2ee800bbbc0b4509218ed3ce953c6ccd21.tar.xz
(svn r27354) -Fix (r27343): Actually make it work. (rubidium)
Diffstat (limited to 'src')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index d7a25d8bb..743e6e193 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1975,7 +1975,7 @@ static void DrawTrackDetails(const TileInfo *ti, const RailtypeInfo *rti)
/* Base sprite for track fences.
* Note: Halftile slopes only have fences on the upper part. */
uint num_sprites = 0;
- SpriteID base_image = GetCustomRailSprite(rti, ti->tile, RTSG_FENCES, IsHalftileSlope(ti->tileh) ? TCX_UPPER_HALFTILE : TCX_NORMAL);
+ SpriteID base_image = GetCustomRailSprite(rti, ti->tile, RTSG_FENCES, IsHalftileSlope(ti->tileh) ? TCX_UPPER_HALFTILE : TCX_NORMAL, &num_sprites);
if (base_image == 0) {
base_image = SPR_TRACK_FENCE_FLAT_X;
num_sprites = 8;