X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=2f18427d827f8111d0357416d92525bb4ad7bb72;hp=0f6a3febeb98d92a8e50232fcb16df4e1bd98716;hb=e870afa5d5a45925c3f2b5677cb15f5ffe2b4e0e;hpb=8a89b12641ab26e7f49b77a82be2d160de2ab6a5 diff --git a/src/position.cpp b/src/position.cpp index 0f6a3feb..2f18427d 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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;