This commit is contained in:
Mylloon 2023-02-19 18:21:27 +01:00
parent 59c984d5ea
commit e4f1d90c6f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -172,7 +172,7 @@ int bfs(bfsNode &result) {
int new_cy = cy + dy[i];
// Si la case derrière la caisse n'est pas accessible
if (cur.state.board[new_cx][new_cy] != TARGET ||
if (cur.state.board[new_cx][new_cy] != TARGET &&
cur.state.board[new_cx][new_cy] != FREE) {
continue;
}