summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-09-03 02:06:03 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-09-03 02:06:03 +0500
commitaaefc10681cc2bcb30268c67de1a4784e0ca891f (patch)
treecd55b7c1145fe01da567fa975cbdf56c88aba24e /src
parent2f811f69c13c3ad9b05d15e6510192a7dde95c71 (diff)
faulty check fix
Diffstat (limited to 'src')
-rw-r--r--src/scenes/mainMenu.c1
-rw-r--r--src/scenes/sceneManager.c3
2 files changed, 3 insertions, 1 deletions
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 <raylib.h>
+#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
@@ -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;