From 796cc2500762ea542b5bebc4f5f683af052540cf Mon Sep 17 00:00:00 2001 From: StackZ <47382115+SuperSaiyajinStackZ@users.noreply.github.com> Date: Tue, 26 May 2020 05:30:02 +0200 Subject: [PATCH] Oops, only set to nullptr, if it's not nullptr. --- gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.cpp b/gui.cpp index c8b426b..46bb921 100644 --- a/gui.cpp +++ b/gui.cpp @@ -97,7 +97,7 @@ void Gui::exit(void) { C2D_TextBufDelete(TextBuf); C2D_Fini(); C3D_Fini(); - usedScreen = nullptr; + if (usedScreen != nullptr) usedScreen = nullptr; } // Draw a Centered String.