Don't execute setcfgname if the provided name is the same as the one already in place.

git-svn-id: https://svn.eduke32.com/eduke32@6317 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-07-05 05:37:52 +00:00
parent 0992cdb03f
commit ad32eaeee0
1 changed files with 3 additions and 0 deletions

View File

@ -2745,6 +2745,9 @@ void C_InitQuotes(void)
LUNATIC_EXTERN void C_SetCfgName(const char *cfgname)
{
if (Bstrcmp(g_setupFileName, cfgname) == 0) // no need to do anything if name is the same
return;
char temp[BMAX_PATH];
struct Bstat st;