summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 18:08:48 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 18:08:48 +0000
commit9e216a688f13ca158609c28dbd191db42c3e32ec (patch)
tree19c75414deab9a25a74cc2712a289f55235a2ddc /src
parentc035a9531bc90368f35eba671c463956c7886075 (diff)
downloadopenttd-9e216a688f13ca158609c28dbd191db42c3e32ec.tar.xz
(svn r26068) -Fix: unneeded NULL check
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index e74b24d22..a993acdfe 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -847,7 +847,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID
SpriteID image = sprites->ground.sprite;
PaletteID pal = sprites->ground.pal;
RailTrackOffset overlay_offset;
- if (rti != NULL && rti->UsesOverlay() && SplitGroundSpriteForOverlay(NULL, &image, &overlay_offset)) {
+ if (rti->UsesOverlay() && SplitGroundSpriteForOverlay(NULL, &image, &overlay_offset)) {
SpriteID ground = GetCustomRailSprite(rti, INVALID_TILE, RTSG_GROUND);
DrawSprite(image, PAL_NONE, x, y);
DrawSprite(ground + overlay_offset, PAL_NONE, x, y);