Previous version chess engine Stockfish
Author compilation - joergoster
Information on the compilation:
Checking for legality of a possible ponder move
must be done before we undo the first pv move,
of course. (spotted by mohammed li.)
This obviously only has any effect when playing in ponder mode.
No functional change.