From cd9fc5984adf9b88bf6058ddd35527413bcb11fc Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 26 Sep 2024 06:50:48 +0930 Subject: [PATCH] RSP: Make sure m_SyncSystem is valid before checking m_SyncSystem->m_BaseSystem on shutdown --- Source/Project64-rsp-core/cpu/RspSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-rsp-core/cpu/RspSystem.cpp b/Source/Project64-rsp-core/cpu/RspSystem.cpp index ab94dc214..7f1826e9d 100644 --- a/Source/Project64-rsp-core/cpu/RspSystem.cpp +++ b/Source/Project64-rsp-core/cpu/RspSystem.cpp @@ -51,7 +51,7 @@ CRSPSystem::CRSPSystem() : CRSPSystem::~CRSPSystem() { - if (m_SyncSystem->m_BaseSystem != nullptr) + if (m_SyncSystem != nullptr && m_SyncSystem->m_BaseSystem != nullptr) { if (m_IMEM != nullptr) {