mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
One more error check
This commit is contained in:
@@ -404,7 +404,7 @@ static void window_title_editor_mouseup()
|
||||
}
|
||||
break;*/
|
||||
case WIDX_TITLE_EDITOR_SKIP_TO:
|
||||
if (playing && w->selected_list_item != -1) {
|
||||
if (playing && w->selected_list_item != -1 && w->selected_list_item < gConfigTitleSequences.presets[gCurrentTitleSequence].num_commands) {
|
||||
if (gTitleScriptCommand > w->selected_list_item) {
|
||||
title_skip_from_beginning();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user