diff --git a/source/options/ControlsSubState.hx b/source/options/ControlsSubState.hx index edcb72d..c23de60 100644 --- a/source/options/ControlsSubState.hx +++ b/source/options/ControlsSubState.hx @@ -194,27 +194,27 @@ class ControlsSubState extends ExtendableSubState { } else { switch (curSelected) { case 0: - SaveData.settings.keyboardBinds[0][0] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[0][0] = FlxG.keys.getIsDown()[0].ID.toString(); case 1: - SaveData.settings.keyboardBinds[0][1] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[0][1] = FlxG.keys.getIsDown()[0].ID.toString(); case 2: - SaveData.settings.keyboardBinds[1][0] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[1][0] = FlxG.keys.getIsDown()[0].ID.toString(); case 3: - SaveData.settings.keyboardBinds[1][1] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[1][1] = FlxG.keys.getIsDown()[0].ID.toString(); case 4: - SaveData.settings.keyboardBinds[2][0] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[2][0] = FlxG.keys.getIsDown()[0].ID.toString(); case 5: - SaveData.settings.keyboardBinds[2][1] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[2][1] = FlxG.keys.getIsDown()[0].ID.toString(); case 6: - SaveData.settings.keyboardBinds[3][0] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[3][0] = FlxG.keys.getIsDown()[0].ID.toString(); case 7: - SaveData.settings.keyboardBinds[3][1] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[3][1] = FlxG.keys.getIsDown()[0].ID.toString(); case 8: - SaveData.settings.keyboardBinds[4][0] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[4][0] = FlxG.keys.getIsDown()[0].ID.toString(); case 9: - SaveData.settings.keyboardBinds[5][0] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[5][0] = FlxG.keys.getIsDown()[0].ID.toString(); case 10: - SaveData.settings.keyboardBinds[6][0] = FlxG.keys.getIsDown()[0].ID; + SaveData.settings.keyboardBinds[6][0] = FlxG.keys.getIsDown()[0].ID.toString(); } } SaveData.saveSettings();