* Get the grf file associated with an engine type. * @param engine_type Engine to query. * @return grf file associated with the engine. */
| 1055 | * @return grf file associated with the engine. |
| 1056 | */ |
| 1057 | static const GRFFile *GetEngineGrfFile(EngineID engine_type) |
| 1058 | { |
| 1059 | const Engine *e = Engine::Get(engine_type); |
| 1060 | return (e != nullptr) ? e->GetGRF() : nullptr; |
| 1061 | } |
| 1062 | |
| 1063 | /** |
| 1064 | * Resolver of a vehicle (chain). |
no test coverage detected