Do not overwrite ride type when extending station

This commit is contained in:
Gymnasiast 2021-09-21 10:50:38 +02:00
parent 11607f525d
commit 8fb8b2a4c1
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 0 additions and 2 deletions

View File

@ -244,7 +244,6 @@ bool track_add_station_element(CoordsXYZD loc, ride_id_t rideIndex, int32_t flag
targetTrackType = TrackElemType::MiddleStation;
}
stationElement->AsTrack()->SetTrackType(targetTrackType);
stationElement->AsTrack()->SetRideType(ride->type);
map_invalidate_element(loc, stationElement);
@ -390,7 +389,6 @@ bool track_remove_station_element(const CoordsXYZD& loc, ride_id_t rideIndex, in
}
}
stationElement->AsTrack()->SetTrackType(targetTrackType);
stationElement->AsTrack()->SetRideType(ride->type);
map_invalidate_element(currentLoc, stationElement);
}