DigitalController: Fix buttons getting broken when load-from-state on

This commit is contained in:
Connor McLaughlin 2021-03-27 13:42:02 +10:00
parent 9bbddc7b3a
commit ff411dac2e

View file

@ -36,7 +36,7 @@ bool DigitalController::DoState(StateWrapper& sw, bool apply_input_state)
u16 button_state = m_button_state; u16 button_state = m_button_state;
sw.Do(&button_state); sw.Do(&button_state);
if (apply_input_state) if (apply_input_state)
m_button_state = apply_input_state; m_button_state = button_state;
sw.Do(&m_transfer_state); sw.Do(&m_transfer_state);
return true; return true;