1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Convert ride_get_station_object() to method

This commit is contained in:
Gymnasiast
2021-12-18 18:48:52 +01:00
parent e165de7482
commit 449da0d6bd
33 changed files with 42 additions and 41 deletions

View File

@@ -106,7 +106,7 @@ static bool map_animation_invalidate_ride_entrance(const CoordsXYZ& loc)
auto ride = get_ride(tileElement->AsEntrance()->GetRideIndex());
if (ride != nullptr)
{
auto stationObj = ride_get_station_object(ride);
auto stationObj = ride->GetStationObject();
if (stationObj != nullptr)
{
int32_t height = loc.z + stationObj->Height + 8;