Skip to content

Commit

Permalink
Workaround potential crash on PiZeros
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbolt committed Jan 2, 2024
1 parent 4819ec7 commit 126d8c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EubosChess/src/main/java/eubos/main/EubosEngineMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ private long repopulateRootTransFromCacheIfItWasOverwritten(SearchResult result)
int transBestMove = Transposition.getBestMove(trans);
int transDepth = Transposition.getDepthSearchedInPly(trans);
if (result.trusted &&
transDepth <= result.depth &&
transDepth <= result.depth &&
result.pv != null &&
!Move.areEqualForTrans(transBestMove, result.pv[0])) {
// Prefer the trusted PV to the transposition, in which case, invalidate the transposition
if (ENABLE_LOGGING) {
Expand Down

0 comments on commit 126d8c5

Please sign in to comment.