X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=2f18427d827f8111d0357416d92525bb4ad7bb72;hp=0f6a3febeb98d92a8e50232fcb16df4e1bd98716;hb=bb3427ca85bdb20b4c8af12b63f635d03c5e9146;hpb=6809b57cfc47321826f01253241afef8b4380612 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;