mirror of
https://gitlab.com/manzerbredes/chessarbiter.git
synced 2025-04-07 02:26:26 +02:00
Avoid the use of structured bindings
This commit is contained in:
parent
5e78a4172d
commit
8b499044fd
1 changed files with 4 additions and 4 deletions
|
@ -370,8 +370,8 @@ bool ChessArbiter::IsDrawByNoMoves() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChessArbiter::IsDrawByRepetitions() {
|
bool ChessArbiter::IsDrawByRepetitions() {
|
||||||
for (auto const &[key, val] : positions) {
|
for (auto const &pos : positions) {
|
||||||
if (val >= 3) {
|
if (pos.second >= 3) {
|
||||||
return (true);
|
return (true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue