sdl: fixed recent bug i introduced that prevented loading savestates 0-9

This commit is contained in:
punkrockguy318 2010-07-26 17:19:25 +00:00
parent 3f7d1ec94a
commit dfccec8c7a
1 changed files with 1 additions and 1 deletions

View File

@ -917,7 +917,7 @@ void FCEUI_LoadState(const char *fname)
{ {
FCEUI_MakeBackupMovie(false); //Backup the movie before the contents get altered, but do not display messages FCEUI_MakeBackupMovie(false); //Backup the movie before the contents get altered, but do not display messages
} }
if (!file_exists(fname)) if (!file_exists(fname) && fname != NULL)
{ {
loadStateFailed = 1; loadStateFailed = 1;
return; // state doesn't exist; exit cleanly return; // state doesn't exist; exit cleanly