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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user