1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00

Use more specific types where appropriate (#14388)

It takes marginally more time to get a Peep than a Guest/Staff so may as well go straight to the correct type
This commit is contained in:
Duncan
2021-03-25 08:44:25 +00:00
committed by GitHub
parent 1be7457e30
commit 0a47d2157a
7 changed files with 44 additions and 54 deletions

View File

@@ -838,7 +838,7 @@ void Ride::FormatStatusTo(Formatter& ft) const
mode == RideMode::Race && !(lifecycle_flags & RIDE_LIFECYCLE_PASS_STATION_NO_STOPPING)
&& race_winner != SPRITE_INDEX_NULL)
{
auto peep = GetEntity<Peep>(race_winner);
auto peep = GetEntity<Guest>(race_winner);
if (peep != nullptr)
{
ft.Add<rct_string_id>(STR_RACE_WON_BY);