From 60783d7109a7f547d274db6a6acae5d8f0af261d Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 23 Jul 2024 22:02:54 +0200 Subject: [PATCH] fix fail condition --- src/m_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_misc.c b/src/m_misc.c index 8cf20fd65..b8c88abb5 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -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;