From aaefc10681cc2bcb30268c67de1a4784e0ca891f Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Thu, 3 Sep 2026 02:06:03 +0500 Subject: faulty check fix --- src/scenes/mainMenu.c | 1 + src/scenes/sceneManager.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/scenes') diff --git a/src/scenes/mainMenu.c b/src/scenes/mainMenu.c index 3a857cd..5b6408f 100644 --- a/src/scenes/mainMenu.c +++ b/src/scenes/mainMenu.c @@ -25,6 +25,7 @@ Scene *CreateMainMenu() { outp->Draw = drawMainMenu; outp->Deint = deinitMainMenu; outp->IsTransparent = false; + outp->Reopen = NULL; outp->GetCurrentState = NULL; return outp; diff --git a/src/scenes/sceneManager.c b/src/scenes/sceneManager.c index f500972..8baa18e 100644 --- a/src/scenes/sceneManager.c +++ b/src/scenes/sceneManager.c @@ -1,5 +1,6 @@ #include "scenes.h" #include +#include #include #include @@ -35,7 +36,7 @@ void DeleteSceneFromStack() { Scene *currentScene = getCurrentScene(); if (currentScene == NULL) return; PopUpState currentSceneState = POPUP_ACTIVE; - if (currentScene != NULL) + if (currentScene->GetCurrentState != NULL) currentSceneState = currentScene->GetCurrentState(currentScene); currentScene->Deint(currentScene); sceneStack[--sceneStackDepth] = NULL; -- cgit v1.3