]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Move the draw check also for qsearch
[stockfish] / src / position.cpp
index f4f0db77547ba7bd7ea9d85c9450ed908e4c1ebb..abe24a52404ccfb053303928c831084c9d990bb2 100644 (file)
@@ -30,7 +30,6 @@
 #include "rkiss.h"
 #include "thread.h"
 #include "tt.h"
-#include "ucioption.h"
 
 using std::string;
 using std::cout;
@@ -778,6 +777,8 @@ bool Position::move_gives_check(Move m, const CheckInfo& ci) const {
 
 void Position::do_setup_move(Move m) {
 
+  assert(move_is_ok(m));
+
   StateInfo newSt;
 
   // Update the number of full moves after black's move