SV_RehashBans_f may be executed when the server isn't running (#785)

This commit is contained in:
Tim Angus 2025-09-22 21:34:59 +01:00
parent 266357ffbe
commit 56f9f94ee7

View File

@ -639,11 +639,6 @@ static void SV_RehashBans_f(void)
char *textbuf, *curpos, *maskpos, *newlinepos, *endpos;
char filepath[MAX_QPATH];
// make sure server is running
if ( !com_sv_running->integer ) {
return;
}
serverBansCount = 0;
if(!sv_banFile->string || !*sv_banFile->string)