From dfccec8c7a6f70e83dc81c787c99cd3a0b73b172 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Mon, 26 Jul 2010 17:19:25 +0000 Subject: [PATCH] sdl: fixed recent bug i introduced that prevented loading savestates 0-9 --- src/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.cpp b/src/state.cpp index fe067870..0de6e636 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -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 } - if (!file_exists(fname)) + if (!file_exists(fname) && fname != NULL) { loadStateFailed = 1; return; // state doesn't exist; exit cleanly