mirror of
https://github.com/sigmasternchen/php-chess
synced 2025-03-14 23:58:53 +00:00
fix: Argument to getHashForPieces should be reference
This commit is contained in:
parent
4a748d7ea2
commit
78f6ba6ef2
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class GameHistory {
|
|||
",",
|
||||
array_map(
|
||||
[$this, "getHashForPieces"],
|
||||
[$pawns, $bishops, $knights, $rooks, $queens, $kings]
|
||||
[&$pawns, &$bishops, &$knights, &$rooks, &$queens, &$kings]
|
||||
)
|
||||
) . ($this->hasCastlingRights($rooks, $king) ? "." : "");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue