Merge pull request #114 from Laupetin/fix/invalid-playercounts
Ignore servers in serverlist that specify an invalid player count
This commit is contained in:
commit
002dfa77c4
@ -472,6 +472,11 @@ namespace Components
|
||||
// Remove server from queue
|
||||
i = ServerList::RefreshContainer.servers.erase(i);
|
||||
|
||||
// Servers with more than 18 players or less than 0 players are faking for sure
|
||||
// So lets ignore those
|
||||
if (server.clients > 18 || server.maxClients > 18 || server.clients < 0 || server.maxClients < 0)
|
||||
return;
|
||||
|
||||
// Check if already inserted and remove
|
||||
auto list = ServerList::GetList();
|
||||
if (!list) return;
|
||||
|
Loading…
Reference in New Issue
Block a user