novice mistake: dont crash when loading a gbagame with no sram

This commit is contained in:
zeromus 2009-04-07 15:59:43 +00:00
parent c62fe23941
commit 97ac62d69f
1 changed files with 1 additions and 2 deletions

View File

@ -74,9 +74,8 @@ static void GBAgame_reset(void)
if(fgame)
{
fread(GBArom+GBA_ROMSIZE,1,GBA_RAMSIZE,fgame);
fclose(fgame);
}
fclose(fgame);
}
static void GBAgame_close(void)