Codechange: Remove virtual functions SpriteGroup::GetResult and GetNumResults. They are only implemented in and called via ResultSpriteGroup.
This commit is contained in:
@@ -276,11 +276,11 @@ PalSpriteID GetBadgeSprite(const Badge &badge, GrfSpecFeature feature, std::opti
|
||||
{
|
||||
BadgeResolverObject object(badge, feature, introduction_date);
|
||||
const auto *group = object.Resolve<ResultSpriteGroup>();
|
||||
if (group == nullptr || group->GetNumResults() == 0) return {0, PAL_NONE};
|
||||
if (group == nullptr || group->num_sprites == 0) return {0, PAL_NONE};
|
||||
|
||||
PaletteID pal = badge.flags.Test(BadgeFlag::UseCompanyColour) ? remap : PAL_NONE;
|
||||
|
||||
return {group->GetResult(), pal};
|
||||
return {group->sprite, pal};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user