From 931fcd0381f33f35feb13316779760193f2b09bb Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 31 May 2024 18:05:05 -0400 Subject: [PATCH] Fix missing return --- ISLE/isleapp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index b3379e3d..eccbe4da 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -242,6 +242,8 @@ void IsleApp::SetupVideoFlags( int SDL_AppInit(void** appstate, int argc, char** argv) { + *appstate = NULL; + // Add subsystems as necessary later if (SDL_Init(SDL_INIT_VIDEO) != 0 || SDL_Init(SDL_INIT_TIMER) != 0) { SDL_ShowSimpleMessageBox( @@ -250,6 +252,7 @@ int SDL_AppInit(void** appstate, int argc, char** argv) "\"LEGO® Island\" failed to start. Please quit all other applications and try again.", NULL ); + return -1; } // [library:window]