Codechange: Use helper to set grf_prop's grffile and grfid together. (#13612)
This commit is contained in:
@@ -71,8 +71,7 @@ void SetCustomEngineSprites(EngineID engine, CargoType cargo, const SpriteGroup
|
||||
void SetEngineGRF(EngineID engine, const GRFFile *file)
|
||||
{
|
||||
Engine *e = Engine::Get(engine);
|
||||
e->grf_prop.grfid = file->grfid;
|
||||
e->grf_prop.grffile = file;
|
||||
e->grf_prop.SetGRFFile(file);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user