diff --git a/src/doomstat.h b/src/doomstat.h index f97aaefec..fb8bfa122 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -543,7 +543,7 @@ extern mapthing_t *redctfstarts[MAXPLAYERS]; // CTF #else #define DEBUGFILE #ifdef DEBUGFILE -#define DEBFILE(msg) { if (debugfile) { fputs(msg, debugfile); fflush(debugfile); } } +#define DEBFILE(msg) { if (UNLIKELY(debugfile)) { fputs(msg, debugfile); fflush(debugfile); } } #else #define DEBFILE(msg) {} #endif