fix cond
This commit is contained in:
parent
59c984d5ea
commit
e4f1d90c6f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue