diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index ef3ebc0fe4..f05950e96f 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -5175,7 +5175,7 @@ static void setup_scenery_selection(rct_window* w) while (tool_set(w, WIDX_BACKGROUND, TOOL_CROSSHAIR)) ; - gTrackDesignSaveRideIndex = static_cast(w->number); + gTrackDesignSaveRideIndex = w->number; track_design_save_init(); gGamePaused |= GAME_PAUSED_SAVING_TRACK; diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index f214499691..e4c6d4b56f 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -35,7 +35,7 @@ Ride gRideList[MAX_RIDES]; int16_t gMapSizeUnits; int16_t gMapBaseZ; bool gTrackDesignSaveMode = false; -uint8_t gTrackDesignSaveRideIndex = RIDE_ID_NULL; +ride_id_t gTrackDesignSaveRideIndex = RIDE_ID_NULL; uint8_t gClipHeight = 255; CoordsXY gClipSelectionA = { 0, 0 }; CoordsXY gClipSelectionB = { MAXIMUM_TILE_START_XY, MAXIMUM_TILE_START_XY };