mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 04:23:29 -08:00
Apply suggestion from @ZeldaZach
Co-authored-by: Zach H <zahalpern+github@gmail.com>
This commit is contained in:
parent
6a2efa7686
commit
e74110c429
1 changed files with 3 additions and 0 deletions
|
|
@ -2222,6 +2222,9 @@ QList<ServerInfo_UserAlt> Servatrice_DatabaseInterface::getUserAlts(const QStrin
|
||||||
candidate.banCount = candidateQuery.value(6).toInt();
|
candidate.banCount = candidateQuery.value(6).toInt();
|
||||||
candidate.isActive = candidateQuery.value(7).toBool();
|
candidate.isActive = candidateQuery.value(7).toBool();
|
||||||
candidates << candidate;
|
candidates << candidate;
|
||||||
|
if (candidates.size() >= MAX_USER_ALTS_PER_LEVEL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resolve session-level evidence (shared IP or historic client id) for
|
// Resolve session-level evidence (shared IP or historic client id) for
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue