Qt: Block a bug whereby undoing a save can overwrite the wrong save
Jeffrey Pfau jeffrey@endrift.com
Thu, 16 Jul 2015 23:50:33 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -559,8 +559,9 @@ threadContinue();
} void GameController::loadState(int slot) { - if (slot > 0) { + if (slot > 0 && slot != m_stateSlot) { m_stateSlot = slot; + m_backupSaveState.clear(); } GBARunOnThread(&m_threadContext, [](GBAThread* context) { GameController* controller = static_cast<GameController*>(context->userData);