Pad: Fix loading controllers from save states
This commit is contained in:
parent
f9d2643d98
commit
81a638cabb
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue