From 0dcceb914725ba0efb755869de9649ff278ea680 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 18 Apr 2019 17:25:02 +0000 Subject: [PATCH] Fix EDUKE32_STANDALONE crash when calling G_DeleteOldSaves() at startup in debug builds git-svn-id: https://svn.eduke32.com/eduke32@7599 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 79810e0ac..d74379cd7 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -6180,10 +6180,6 @@ int app_main(int argc, char const * const * argv) #endif #endif -#ifdef EDUKE32_STANDALONE - G_DeleteOldSaves(); -#endif - G_ExtPreInit(argc, argv); #ifdef __APPLE__ @@ -6226,6 +6222,10 @@ int app_main(int argc, char const * const * argv) // accesses g_player[0]. G_MaybeAllocPlayer(0); +#ifdef EDUKE32_STANDALONE + G_DeleteOldSaves(); +#endif + G_CheckCommandLine(argc,argv); // This needs to happen afterwards, as G_CheckCommandLine() is where we set