mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
DigitalController: Fix buttons getting broken when load-from-state on
This commit is contained in:
parent
9bbddc7b3a
commit
ff411dac2e
|
@ -36,7 +36,7 @@ bool DigitalController::DoState(StateWrapper& sw, bool apply_input_state)
|
|||
u16 button_state = m_button_state;
|
||||
sw.Do(&button_state);
|
||||
if (apply_input_state)
|
||||
m_button_state = apply_input_state;
|
||||
m_button_state = button_state;
|
||||
|
||||
sw.Do(&m_transfer_state);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue