compile fix for my merging of rca287e7957c7

This commit is contained in:
nitsuja 2012-01-04 09:13:11 -08:00 committed by skidau
parent 99b202fd2e
commit 1f9586a8ba
1 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,8 @@ void DoState(PointerWrap &p)
// if we had to create a temporary device, discard it if we're not loading.
// also, if no movie is active, we'll assume the user wants to keep their current devices
// instead of the ones they had when the savestate was created.
if(p.GetMode() != PointerWrap::MODE_READ)
if(p.GetMode() != PointerWrap::MODE_READ ||
(!Movie::IsRecordingInput() && !Movie::IsPlayingInput()))
{
delete pSaveDevice;
}