# HG changeset patch # User rubidium # Date 2013-11-23 18:08:48 # Node ID 35b83b9520b2cefffaee99a7af8b8961af290249 # Parent 7c596bb433ad067658ba6dd92559ddfb0f422f27 (svn r26068) -Fix: unneeded NULL check diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -847,7 +847,7 @@ bool DrawStationTile(int x, int y, RailT 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);