Pad: Fix loading controllers from save states

This commit is contained in:
Albert Liu 2020-11-13 07:10:30 -08:00
parent f9d2643d98
commit 81a638cabb

View file

@ -67,7 +67,11 @@ bool Pad::DoState(StateWrapper& sw)
m_controllers[i].reset();
if (state_controller_type != ControllerType::None)
{
m_controllers[i] = Controller::Create(state_controller_type, i);
if (!sw.DoMarker("Controller") || !m_controllers[i]->DoState(sw))
return false;
}
}
else
{