Skip to content

Commit

Permalink
Fix when setup files are missing (first run)
Browse files Browse the repository at this point in the history
  • Loading branch information
h3rb authored Jun 7, 2022
1 parent 3701c1e commit 29ce533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ICUI/ICUI.gml
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ function ICUI_assure_settings_exist() {
if ( __INPUTCANDY.players[player_index].device == none ) {
if ( player_index != __INPUTCANDY.player_using_keyboard_mouse or !__INPUTCANDY.ui.input_binding.keyboard_and_mouse ) { // Return to previous screen
return false;
} else if (array_length(__INPUTCANDY.settings) == 0 and __INPUTCANDY.ui.input_binding.keyboard_mouse) {
} else if (array_length(__INPUTCANDY.settings) == 0 and __INPUTCANDY.ui.input_binding.keyboard_and_mouse) {
__INPUTCANDY.settings[0]=__ICI.New_ICSettings();
__INPUTCANDY.settings[0].deviceInfo=__ICI.New_ICDevice();
__INPUTCANDY.settings[0].index=0;
Expand Down Expand Up @@ -3244,4 +3244,4 @@ function ICUI_Draw_gamepad_test() {
draw_set_font(oldfont);
draw_set_halign(oldhalign);
draw_set_valign(oldvalign);
}
}

0 comments on commit 29ce533

Please sign in to comment.