Codechange: Remove virtual functions SpriteGroup::GetResult and GetNumResults. They are only implemented in and called via ResultSpriteGroup.
This commit is contained in:
@@ -259,9 +259,9 @@ SpriteID GetCustomAirportSprite(const AirportSpec *as, uint8_t layout)
|
||||
{
|
||||
AirportResolverObject object(INVALID_TILE, nullptr, as, layout);
|
||||
const auto *group = object.Resolve<ResultSpriteGroup>();
|
||||
if (group == nullptr || group->GetNumResults() == 0) return as->preview_sprite;
|
||||
if (group == nullptr || group->num_sprites == 0) return as->preview_sprite;
|
||||
|
||||
return group->GetResult();
|
||||
return group->sprite;
|
||||
}
|
||||
|
||||
uint16_t GetAirportCallback(CallbackID callback, uint32_t param1, uint32_t param2, Station *st, TileIndex tile)
|
||||
|
||||
Reference in New Issue
Block a user