From 27e49c00b3d65b8d8f3b1e858eea76d4ea06919f Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 28 Jun 2020 02:28:01 +0200 Subject: [PATCH] FreeLookCamera: Fix savestate branch inconsistency. Fixes https://bugs.dolphin-emu.org/issues/12168 --- Source/Core/Core/State.cpp | 2 +- Source/Core/VideoCommon/FreeLookCamera.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 873bf823ea..7c41674aa5 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -74,7 +74,7 @@ static Common::Event g_compressAndDumpStateSyncEvent; static std::thread g_save_thread; // Don't forget to increase this after doing changes on the savestate system -constexpr u32 STATE_VERSION = 119; // Last changed in PR 8820 +constexpr u32 STATE_VERSION = 120; // Last changed in PR 8904 // Maps savestate versions to Dolphin versions. // Versions after 42 don't need to be added to this list, diff --git a/Source/Core/VideoCommon/FreeLookCamera.cpp b/Source/Core/VideoCommon/FreeLookCamera.cpp index 3c04962c4e..7a15674da2 100644 --- a/Source/Core/VideoCommon/FreeLookCamera.cpp +++ b/Source/Core/VideoCommon/FreeLookCamera.cpp @@ -274,6 +274,8 @@ void FreeLookCamera::DoState(PointerWrap& p) { const auto old_type = m_current_type; p.Do(m_current_type); + p.Do(m_fov_x); + p.Do(m_fov_y); if (old_type == m_current_type) { m_camera_controller->DoState(p);