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
This commit is contained in:
terminx 2019-04-18 17:25:02 +00:00 committed by Christoph Oelckers
parent 879cb550a6
commit 0dcceb9147

View file

@ -6180,10 +6180,6 @@ int app_main(int argc, char const * const * argv)
#endif #endif
#endif #endif
#ifdef EDUKE32_STANDALONE
G_DeleteOldSaves();
#endif
G_ExtPreInit(argc, argv); G_ExtPreInit(argc, argv);
#ifdef __APPLE__ #ifdef __APPLE__
@ -6226,6 +6222,10 @@ int app_main(int argc, char const * const * argv)
// accesses g_player[0]. // accesses g_player[0].
G_MaybeAllocPlayer(0); G_MaybeAllocPlayer(0);
#ifdef EDUKE32_STANDALONE
G_DeleteOldSaves();
#endif
G_CheckCommandLine(argc,argv); G_CheckCommandLine(argc,argv);
// This needs to happen afterwards, as G_CheckCommandLine() is where we set // This needs to happen afterwards, as G_CheckCommandLine() is where we set