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