From 65cfa06a29736734e839b354694ba39d4ead10b5 Mon Sep 17 00:00:00 2001 From: Eblo <7004497+Eblo@users.noreply.github.com> Date: Sun, 11 Jan 2026 15:46:35 -0500 Subject: [PATCH] Clear GhostshipGui and context on GameEngine::Destroy() --- src/port/Engine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 727c0113..3532c8bd 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -340,6 +340,8 @@ void GameEngine::Create() { } void GameEngine::Destroy() { + GhostshipGui::Destroy(); + Instance->context = nullptr; AudioExit(); #ifdef __SWITCH__ Ship::Switch::Exit();