mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 02:42:42 +01:00
Codechange: Pass TileDesc by reference.
This commit is contained in:
committed by
Peter Nelson
parent
012daaa3d9
commit
96f260e718
@@ -652,15 +652,15 @@ static void AddProducedCargo_Object(TileIndex tile, CargoArray &produced)
|
||||
}
|
||||
|
||||
|
||||
static void GetTileDesc_Object(TileIndex tile, TileDesc *td)
|
||||
static void GetTileDesc_Object(TileIndex tile, TileDesc &td)
|
||||
{
|
||||
const ObjectSpec *spec = ObjectSpec::GetByTile(tile);
|
||||
td->str = spec->name;
|
||||
td->owner[0] = GetTileOwner(tile);
|
||||
td->build_date = Object::GetByTile(tile)->build_date;
|
||||
td.str = spec->name;
|
||||
td.owner[0] = GetTileOwner(tile);
|
||||
td.build_date = Object::GetByTile(tile)->build_date;
|
||||
|
||||
if (spec->grf_prop.HasGrfFile()) {
|
||||
td->grf = GetGRFConfig(spec->grf_prop.grfid)->GetName();
|
||||
td.grf = GetGRFConfig(spec->grf_prop.grfid)->GetName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user