Fix ban.txt crashing game

This commit is contained in:
indev committed 2023-08-05 14:50:12 +03:00
1 parent 20a5adde02
commit f9880e8413
1 file changed
+6
+6
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)