mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-30 17:13:50 +01:00
DroidFish: Fixed crash when engine did not report a ponder move.
This commit is contained in:
parent
c0bc8d3556
commit
1f5f5c9522
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.petero.droidfish"
|
||||
android:versionCode="50"
|
||||
android:versionCode="51"
|
||||
android:versionName="1.44"
|
||||
android:installLocation="auto">
|
||||
<supports-screens android:largeScreens="true"
|
||||
|
|
|
@ -430,6 +430,8 @@ public class TextIO {
|
|||
* @return True if move is valid in position pos, false otherwise.
|
||||
*/
|
||||
public static final boolean isValid(Position pos, Move move, ArrayList<Move> moves) {
|
||||
if (move == null)
|
||||
return false;
|
||||
if (moves == null) {
|
||||
moves = new MoveGen().pseudoLegalMoves(pos);
|
||||
moves = MoveGen.removeIllegal(pos, moves);
|
||||
|
|
Loading…
Reference in New Issue
Block a user