X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.cpp;h=1c2715615ed6cc0424a8e68e18b00390442a632e;hb=0ff91e16da5d66d7b47274203d460ff0144f1e39;hp=31de0b01e4979e5f5fd23adff739e000b7d4dcd3;hpb=84ec1f7331f402f4ab2e2201b72b3ee378cce659;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 31de0b01..1c271561 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1813,7 +1813,7 @@ namespace { assert(threadID >= 0 && threadID < ActiveThreads); assert(ActiveThreads > 1); - Position pos = Position(sp->pos); + Position pos(*sp->pos); CheckInfo ci(pos); SearchStack* ss = sp->sstack[threadID]; Value value = -VALUE_INFINITE; @@ -1955,7 +1955,7 @@ namespace { assert(threadID >= 0 && threadID < ActiveThreads); assert(ActiveThreads > 1); - Position pos = Position(sp->pos); + Position pos(*sp->pos); CheckInfo ci(pos); SearchStack* ss = sp->sstack[threadID]; Value value = -VALUE_INFINITE; @@ -2967,7 +2967,7 @@ namespace { splitPoint = SplitPointStack[master] + Threads[master].activeSplitPoints; Threads[master].activeSplitPoints++; - // Initialize the split point object and copy current position + // Initialize the split point object splitPoint->parent = Threads[master].splitPoint; splitPoint->finished = false; splitPoint->ply = ply; @@ -2981,7 +2981,7 @@ namespace { splitPoint->mp = mp; splitPoint->moves = *moves; splitPoint->cpus = 1; - splitPoint->pos.fast_copy(p); + splitPoint->pos = &p; splitPoint->parentSstack = sstck; for (i = 0; i < ActiveThreads; i++) splitPoint->slaves[i] = 0;