From df63638b4ac0fe28567f1353f02aab84b9ba9b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 13 May 2017 13:00:43 +0200 Subject: [PATCH] DSPHLE: Fix a typo in the savestate code https://github.com/dolphin-emu/dolphin/pull/5306#discussion_r112840565 --- Source/Core/Core/HW/DSPHLE/DSPHLE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DSPHLE/DSPHLE.cpp b/Source/Core/Core/HW/DSPHLE/DSPHLE.cpp index da457b6eef..8cd2fd1836 100644 --- a/Source/Core/Core/HW/DSPHLE/DSPHLE.cpp +++ b/Source/Core/Core/HW/DSPHLE/DSPHLE.cpp @@ -120,7 +120,7 @@ void DSPHLE::DoState(PointerWrap& p) // if a different type of ucode was being used when the savestate was created, // we have to reconstruct the old type of ucode so that we have a valid thing to call DoState on. const bool same_ucode = ucode_crc == ucode_crc_before_load; - const bool same_last_ucode = last_ucode_crc != last_ucode_crc_before_load; + const bool same_last_ucode = last_ucode_crc == last_ucode_crc_before_load; auto ucode = same_ucode ? std::move(m_ucode) : UCodeFactory(ucode_crc, this, m_wii); auto last_ucode = same_last_ucode ? std::move(m_last_ucode) : UCodeFactory(last_ucode_crc, this, m_wii);