summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2014-07-08 22:32:35 +0200
committerJules Blok <jules.blok@gmail.com>2014-07-08 22:32:35 +0200
commit4df00ae5441aefe8a13548152036f91dd3e4dda0 (patch)
treee3751ea2226bf58ea6772774a6f1fbc45272fcee /Source/Core
parentdb7e746cb423de5ca47be7a3df7c4918a610ff5a (diff)
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.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Movie.cpp2
1 files changed, 1 insertions, 1 deletions
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);