From e82c050a7d33c0d2df3935a7e7b41f95a8c9175e Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 29 Aug 2016 13:38:11 -0700 Subject: [PATCH] Qt: Fix attempting to rewind when game isn't loaded --- src/platform/qt/GameController.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platform/qt/GameController.cpp b/src/platform/qt/GameController.cpp index 7b48a84a9..e57a318fe 100644 --- a/src/platform/qt/GameController.cpp +++ b/src/platform/qt/GameController.cpp @@ -640,7 +640,7 @@ void GameController::rewind(int states) { } void GameController::startRewinding() { - if (!m_gameOpen) { + if (!isLoaded()) { return; } if (m_multiplayer && m_multiplayer->attached() > 1) { @@ -654,6 +654,9 @@ void GameController::startRewinding() { } void GameController::stopRewinding() { + if (!isLoaded()) { + return; + } mCoreThreadSetRewinding(&m_threadContext, false); bool signalsBlocked = blockSignals(true); setPaused(m_wasPaused);