]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Detach search arguments from UI thread
[stockfish] / src / position.cpp
index 0f6a3febeb98d92a8e50232fcb16df4e1bd98716..2f18427d827f8111d0357416d92525bb4ad7bb72 100644 (file)
@@ -97,7 +97,7 @@ CheckInfo::CheckInfo(const Position& pos) {
 /// or the FEN string, we want the new born Position object do not depend
 /// on any external data so we detach state pointer from the source one.
 
-Position::Position(const Position& pos, int th) {
+void Position::copy(const Position& pos, int th) {
 
   memcpy(this, &pos, sizeof(Position));
   threadID = th;