fix: clean up sanitizer startup issues

This commit is contained in:
MatthewBeshay
2026-03-23 19:34:58 +11:00
parent fed9cf2d95
commit cc24fc996a
6 changed files with 42 additions and 25 deletions

View File

@@ -12,7 +12,7 @@
Random* UIScene_MainMenu::random = new Random();
EUIScene UIScene_MainMenu::eNavigateWhenReady = (EUIScene)-1;
int UIScene_MainMenu::eNavigateWhenReady = -1;
UIScene_MainMenu::UIScene_MainMenu(int iPad, void* initData,
UILayer* parentLayer)
@@ -1966,8 +1966,8 @@ void UIScene_MainMenu::tick() {
#endif
{
app.DebugPrintf("[MainMenu] Navigating away from MainMenu.\n");
ui.NavigateToScene(lockedProfile, eNavigateWhenReady);
eNavigateWhenReady = (EUIScene)-1;
ui.NavigateToScene(lockedProfile, (EUIScene)eNavigateWhenReady);
eNavigateWhenReady = -1;
}
#ifdef _DURANGO
else {