DSPHLE: Fix a typo in the savestate code

https://github.com/dolphin-emu/dolphin/pull/5306#discussion_r112840565
This commit is contained in:
Léo Lam 2017-05-13 13:00:43 +02:00
parent 460459fb7d
commit df63638b4a
1 changed files with 1 additions and 1 deletions

View File

@ -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);