summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-20 15:10:26 +0000
committerrubidium <rubidium@openttd.org>2014-04-20 15:10:26 +0000
commit295076155c65c0eab2ca9250eedcd97128dfa915 (patch)
tree3a820119e76611718691e48876caff981189892f /src/newgrf_station.cpp
parentc8fffcd5ce86b35d1ef3101dba776a58e6ab20b5 (diff)
downloadopenttd-295076155c65c0eab2ca9250eedcd97128dfa915.tar.xz
(svn r26474) -Cleanup: remove unneeded check for NULL
Diffstat (limited to 'src/newgrf_station.cpp')
-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 647e8781a..f99121df2 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -545,7 +545,7 @@ uint32 Waypoint::GetNewGRFVariable(const ResolverObject &object, byte variable,
*/
StationResolverObject::StationResolverObject(const StationSpec *statspec, BaseStation *st, TileIndex tile,
CallbackID callback, uint32 callback_param1, uint32 callback_param2)
- : ResolverObject((statspec != NULL ? statspec->grf_prop.grffile : NULL), callback, callback_param1, callback_param2),
+ : ResolverObject(statspec->grf_prop.grffile, callback, callback_param1, callback_param2),
station_scope(*this, statspec, st, tile), town_scope(NULL)
{
/* Invalidate all cached vars */