mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #3069: unable to edit some rides
Issue caused by ride index being used instead of the ride entry id for get_ride_entry.
This commit is contained in:
parent
c60e05fc99
commit
e4372cca5e
|
@ -1695,7 +1695,7 @@ int ride_modify(rct_xy_element *input)
|
|||
mapElement = *input;
|
||||
rideIndex = mapElement.element->properties.track.ride_index;
|
||||
ride = get_ride(rideIndex);
|
||||
rideType = get_ride_entry(rideIndex);
|
||||
rideType = get_ride_entry_by_ride(ride);
|
||||
|
||||
if ((ride == NULL) || (rideType == NULL) || !ride_check_if_construction_allowed(ride))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue