mirror of https://github.com/OpenRCT2/OpenRCT2.git
One more error check
This commit is contained in:
parent
859d854758
commit
6918706680
|
@ -404,7 +404,7 @@ static void window_title_editor_mouseup()
|
||||||
}
|
}
|
||||||
break;*/
|
break;*/
|
||||||
case WIDX_TITLE_EDITOR_SKIP_TO:
|
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) {
|
if (gTitleScriptCommand > w->selected_list_item) {
|
||||||
title_skip_from_beginning();
|
title_skip_from_beginning();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue