X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=b59e5923e3efab97c8733aa0fe12fd2a02910d51;hp=4713094d537ea0f89b3ac44bc7cd3fe7e0f2ac21;hb=c2fc80e5d16339266b5bf6687fa843ff65de3b3e;hpb=673bc5526fa3d352f823ad144fb521b5dc98f45c diff --git a/src/position.h b/src/position.h index 4713094d..b59e5923 100644 --- a/src/position.h +++ b/src/position.h @@ -176,7 +176,7 @@ public: Color side_to_move() const; int startpos_ply_counter() const; bool is_chess960() const; - Thread& this_thread() const; + Thread* this_thread() const; int64_t nodes_searched() const; void set_nodes_searched(int64_t n); template bool is_draw() const; @@ -434,8 +434,8 @@ inline PieceType Position::captured_piece_type() const { return st->capturedType; } -inline Thread& Position::this_thread() const { - return *thisThread; +inline Thread* Position::this_thread() const { + return thisThread; } #endif // !defined(POSITION_H_INCLUDED)