mirror of https://github.com/OpenRCT2/OpenRCT2.git
Bugfix: get `rideIndex` from current map element
This commit is contained in:
parent
db34cf1515
commit
2e72d3c447
|
@ -6999,7 +6999,7 @@ static uint8 loc_6949B9(
|
|||
switch (map_element_get_type(mapElement)) {
|
||||
case MAP_ELEMENT_TYPE_TRACK:
|
||||
if (z != mapElement->base_height) continue;
|
||||
int rideIndex = inputMapElement->properties.path.ride_index;
|
||||
int rideIndex = mapElement->properties.track.ride_index;
|
||||
rct_ride *ride = GET_RIDE(rideIndex);
|
||||
if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_IS_SHOP)) {
|
||||
*outRideIndex = rideIndex;
|
||||
|
|
Loading…
Reference in New Issue