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:
IntelOrca 2016-03-03 00:17:53 +00:00
parent c60e05fc99
commit e4372cca5e
1 changed files with 1 additions and 1 deletions

View File

@ -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;