fix fail condition

This commit is contained in:
Alug committed 2024-07-23 22:02:54 +02:00
1 parent db525f15da
commit 60783d7109
1 file changed
+1 -1
+1 -1
View File
@@ -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;