Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
search.Beam: Fix invalid indexing (#633)
If none of the states of the beam have valid moves, it was attempted to index into the vector of scored valid moves anyway, which results in invalid memory access. Fix this by first checking that there valid moves before attempting to index into them.
- Loading branch information