From cdb54545fe82494142dba8510b6d7d35dac0fe06 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Thu, 30 Jun 2011 19:36:15 +0000 Subject: [PATCH] We need to combine these globals into a common struct one day. This was really unsafe to do. (My fault) Fixes savestates in Breath of Fire 5. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4783 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/CDVD/CDVD.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcsx2/CDVD/CDVD.cpp b/pcsx2/CDVD/CDVD.cpp index 0be35f6934..db2645ea05 100644 --- a/pcsx2/CDVD/CDVD.cpp +++ b/pcsx2/CDVD/CDVD.cpp @@ -601,6 +601,9 @@ void SaveStateBase::cdvdFreeze() if( cdvd.Reading ) cdvd.RErr = DoCDVDreadTrack( cdvd.Readed ? cdvd.Sector : cdvd.SeekToSector, cdvd.ReadMode); + + // Also close the tray! + trayState = 0; } }