fix fail condition
This commit is contained in:
1 parent
db525f15da
commit
60783d7109
1 file changed
+1
-1
+1
-1
@@ -572,7 +572,7 @@ void M_SaveConfig(const char *filename)
|
||||
if (config != NULL)
|
||||
{
|
||||
fclose(config);
|
||||
if (FIL_CopyFile(configfile, backupfile) != false)
|
||||
if (FIL_CopyFile(configfile, backupfile) == false)
|
||||
{
|
||||
CONS_Alert(CONS_WARNING,"Failed to create a backup of the configuration file. Will not attempt to write to file\n");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user