mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +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:
@@ -1421,7 +1421,7 @@ rct_window* window_ride_open_vehicle(Vehicle* vehicle)
|
||||
int32_t numPeepsLeft = vehicle->num_peeps;
|
||||
for (int32_t i = 0; i < 32 && numPeepsLeft > 0; i++)
|
||||
{
|
||||
Peep* peep = GetEntity<Peep>(vehicle->peep[i]);
|
||||
Peep* peep = GetEntity<Guest>(vehicle->peep[i]);
|
||||
if (peep == nullptr)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user