forked from rosebudai/OpenRCT2-Web
Bugfix: get rideIndex from current map element
This commit is contained in:
1 parent
db34cf1515
commit
2e72d3c447
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user