Oops, only set to nullptr, if it's not nullptr.

This commit is contained in:
StackZ
2020-05-26 05:30:02 +02:00
parent a5f7134d1c
commit 796cc25007
+1 -1
View File
@@ -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.