Fix savestates broken by #6493.

This commit is contained in:
Unknown W. Brackets 2014-07-05 07:30:03 -07:00
parent 8a308fa7a7
commit cd78e1676d

View File

@ -51,8 +51,13 @@ void __UsbDoState(PointerWrap &p)
if (!s)
return;
p.Do(usbStarted);
p.Do(usbConnected);
if (s >= 2) {
p.Do(usbStarted);
p.Do(usbConnected);
} else {
usbStarted = false;
usbConnected = true;
}
p.Do(usbActivated);
}