Qt: Fix attempting to rewind when game isn't loaded
Jeffrey Pfau jeffrey@endrift.com
Mon, 29 Aug 2016 13:38:11 -0700
1 files changed,
4 insertions(+),
1 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -640,7 +640,7 @@ emit rewound(&m_threadContext);
} void GameController::startRewinding() { - if (!m_gameOpen) { + if (!isLoaded()) { return; } if (m_multiplayer && m_multiplayer->attached() > 1) {@@ -654,6 +654,9 @@ mCoreThreadSetRewinding(&m_threadContext, true);
} void GameController::stopRewinding() { + if (!isLoaded()) { + return; + } mCoreThreadSetRewinding(&m_threadContext, false); bool signalsBlocked = blockSignals(true); setPaused(m_wasPaused);