System: Fix a possible assertion failure loading state

This commit is contained in:
Connor McLaughlin 2020-03-12 15:32:37 +10:00
parent 21ecf231d9
commit 86eefbd5d7
1 changed files with 1 additions and 0 deletions

View File

@ -336,6 +336,7 @@ bool System::DoState(StateWrapper& sw)
}
UpdateRunningGame(media_filename.c_str(), media.get());
m_cdrom->Reset();
if (media)
m_cdrom->InsertMedia(std::move(media));
else