From 256c75a37c3c868041a7bf07301eb8dc7b7ad5df Mon Sep 17 00:00:00 2001 From: RetroFriends Date: Mon, 3 May 2021 17:35:42 -0400 Subject: [PATCH] Bug fix in game --- scripts/InputCandy/InputCandy.gml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/InputCandy/InputCandy.gml b/scripts/InputCandy/InputCandy.gml index 9ff6119..e125c8f 100644 --- a/scripts/InputCandy/InputCandy.gml +++ b/scripts/InputCandy/InputCandy.gml @@ -2404,7 +2404,7 @@ function New_InputCandy_Private() { var moving=__ICI.New_ICMoving(); if ( settings_index >= 0 ) { var settings=__INPUTCANDY.settings[settings_index]; - var binding=__ICI.GetBinding( settings, action_index ); + var binding=__ICI.GetBinding( settings_index, action_index ); if ( binding != none and binding.bound_action != none and binding.bound_action.is_directional ) return MatchBoundDirectional(player_index,action_index,action,binding,moving); } // No binding found. @@ -2746,7 +2746,7 @@ function New_InputCandy_Private() { show_debug_message("__ICI.LoadSettings: Could not locate an action for "+json_stringify(a[i].bindings[j])); continue; } - if ( res.index == none ) continue; + if ( res.action == none ) continue; s.bindings[k]=res; k++; }