diff options
author | frosch <frosch@openttd.org> | 2013-11-24 14:41:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-11-24 14:41:19 +0000 |
commit | db894b0b3fa13413cdb76989cfcd2bb789243b77 (patch) | |
tree | fd61e4df264893e0c41b0d989f3294c3b4909b63 /src/newgrf_industries.h | |
parent | 45a5aba8d55c68f54885c1de27684e8544e111d9 (diff) | |
download | openttd-db894b0b3fa13413cdb76989cfcd2bb789243b77.tar.xz |
(svn r26085) -Codechange: Pass ResolverObjects as reference instead of pointer since they are never NULL.
Diffstat (limited to 'src/newgrf_industries.h')
-rw-r--r-- | src/newgrf_industries.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.h b/src/newgrf_industries.h index 5c95fcdcb..57e44e8c0 100644 --- a/src/newgrf_industries.h +++ b/src/newgrf_industries.h @@ -21,7 +21,7 @@ struct IndustriesScopeResolver : public ScopeResolver { IndustryType type; ///< Type of the industry. uint32 random_bits; ///< Random bits of the new industry. - IndustriesScopeResolver(ResolverObject *ro, TileIndex tile, Industry *industry, IndustryType type, uint32 random_bits = 0); + IndustriesScopeResolver(ResolverObject &ro, TileIndex tile, Industry *industry, IndustryType type, uint32 random_bits = 0); /* virtual */ uint32 GetRandomBits() const; /* virtual */ uint32 GetVariable(byte variable, uint32 parameter, bool *available) const; |