From 4df00ae5441aefe8a13548152036f91dd3e4dda0 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Tue, 8 Jul 2014 22:32:35 +0200 Subject: [PATCH] Movie: Do not attempt to record input when the emulation has not started yet. Fixes a null pointer exception when the user starts the recording during a state transition. --- Source/Core/Core/Movie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 538248c909..e14f6068da 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -444,7 +444,7 @@ bool BeginRecordingInput(int controllers) if (SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_TARUKONGA) bongos |= (1 << i); - if (Core::IsRunning()) + if (Core::IsRunningAndStarted()) { if (File::Exists(tmpStateFilename)) File::Delete(tmpStateFilename);