fix a recently-introduced bug which broke basic ingame saving

This commit is contained in:
zeromus 2009-05-04 07:25:35 +00:00
parent db6fa0a017
commit cd61477adb
1 changed files with 7 additions and 6 deletions

View File

@ -860,6 +860,13 @@ void MovieSRAM()
strcat(buf, "movie");
}
if (MMU.bupmem.fp)
{
fclose(MMU.bupmem.fp);
MMU.bupmem.fp = NULL;
}
mc_realloc(&MMU.bupmem, bmtype, bmsize);
mc_load_file(&MMU.bupmem, buf);
}
@ -888,12 +895,6 @@ void NDS_Reset( void)
if (!header) return ;
if (MMU.bupmem.fp)
{
fclose(MMU.bupmem.fp);
MMU.bupmem.fp = NULL;
}
lagframecounter=0;
LagFrameFlag=0;
lastLag=0;