Fix ban.txt crashing game

This commit is contained in:
Indev 2023-08-05 14:50:12 +03:00
parent 20a5adde02
commit f9880e8413

View file

@ -2905,6 +2905,12 @@ void D_LoadBan(boolean warning)
address = strtok(buffer, " /\t\r\n");
mask = strtok(NULL, " \t\r\n");
if (!address)
{
malformed = true;
continue;
}
if (i == 0 && !strncmp(address, "BANFORMAT", 9))
{
if (mask)