Fix bug where movies starting from sram would crash.

This commit is contained in:
SuuperW 2018-07-01 12:46:38 -05:00
parent 490c7e917c
commit 35ddbb341d
1 changed files with 2 additions and 2 deletions

View File

@ -604,8 +604,8 @@ static void openRecordingMovie(const char* fname)
bool MovieData::loadSramFrom(std::vector<u8>* buf)
{
EMUFILE_MEMORY ms(buf);
MMU_new.backupDevice.load_movie(ms);
EMUFILE_MEMORY* ms = new EMUFILE_MEMORY(buf); // change to new to avoid automatic destruction
MMU_new.backupDevice.load_movie(*ms);
return true;
}