1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Move getting station index to struct methods

This commit is contained in:
Gymnasiast
2018-09-17 22:51:28 +02:00
parent 6bd732ce5a
commit 67d7d5c022
14 changed files with 81 additions and 62 deletions

View File

@@ -1563,7 +1563,7 @@ static bool track_design_place_ride(rct_track_td6* td6, int16_t x, int16_t y, in
continue;
}
int32_t stationIndex = tile_element_get_station(tile_element);
int32_t stationIndex = tile_element->AsTrack()->GetStationIndex();
uint8_t bl = 1;
if (_trackDesignPlaceOperation == PTD_OPERATION_GET_COST)
{