Merge branch 'fix-ban-txt-crash' into 'master'

Fix ban.txt crashing game

See merge request KartKrew/Kart-Public!329
This commit is contained in:
James R 2023-08-14 11:41:53 +00:00
commit 684b016487

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)