SNES MAX: load state: defaulting to no buttons pressed

This commit is contained in:
tomcw 2021-10-02 15:28:54 +01:00
parent 4cb8a6414d
commit 51e42d1d4e

View File

@ -234,5 +234,9 @@ bool SNESMAXCard::LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT slot, UINT v
m_buttonIndex = yamlLoadHelper.LoadUint(SS_YAML_KEY_BUTTON_INDEX);
// Initialise with no buttons pressed (loaded state maybe part way through reading the buttons)
m_controller1Buttons = 0xff;
m_controller2Buttons = 0xff;
return true;
}