Use 16 bits for gTrackDesignSaveRideIndex throughout

This commit is contained in:
Gymnasiast 2020-10-27 22:02:39 +01:00
parent d58a8d1184
commit 9e17081ee8
No known key found for this signature in database
GPG key ID: DBFFF47AB2CA3EDD
2 changed files with 2 additions and 2 deletions

View file

@ -5175,7 +5175,7 @@ static void setup_scenery_selection(rct_window* w)
while (tool_set(w, WIDX_BACKGROUND, TOOL_CROSSHAIR))
;
gTrackDesignSaveRideIndex = static_cast<uint8_t>(w->number);
gTrackDesignSaveRideIndex = w->number;
track_design_save_init();
gGamePaused |= GAME_PAUSED_SAVING_TRACK;

View file

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