@@ -303,7 +303,7 @@ namespace {
303303
304304 void id_loop (Position& pos) {
305305
306- Stack stack[MAX_PLY_PLUS_3 ], *ss = stack+2 ; // To allow referencing (ss-2)
306+ Stack stack[MAX_PLY_PLUS_6 ], *ss = stack+2 ; // To allow referencing (ss-2)
307307 int depth, prevBestMoveChanges;
308308 Value bestValue, alpha, beta, delta;
309309
@@ -1575,7 +1575,7 @@ namespace {
15751575
15761576void RootMove::extract_pv_from_tt (Position& pos) {
15771577
1578- StateInfo state[MAX_PLY_PLUS_3 ], *st = state;
1578+ StateInfo state[MAX_PLY_PLUS_6 ], *st = state;
15791579 const TTEntry* tte;
15801580 int ply = 0 ;
15811581 Move m = pv[0 ];
@@ -1608,7 +1608,7 @@ void RootMove::extract_pv_from_tt(Position& pos) {
16081608
16091609void RootMove::insert_pv_in_tt (Position& pos) {
16101610
1611- StateInfo state[MAX_PLY_PLUS_3 ], *st = state;
1611+ StateInfo state[MAX_PLY_PLUS_6 ], *st = state;
16121612 const TTEntry* tte;
16131613 int ply = 0 ;
16141614
@@ -1683,7 +1683,7 @@ void Thread::idle_loop() {
16831683
16841684 Threads.mutex .unlock ();
16851685
1686- Stack stack[MAX_PLY_PLUS_3 ], *ss = stack+2 ; // To allow referencing (ss-2)
1686+ Stack stack[MAX_PLY_PLUS_6 ], *ss = stack+2 ; // To allow referencing (ss-2)
16871687 Position pos (*sp->pos , this );
16881688
16891689 std::memcpy (ss-2 , sp->ss -2 , 5 * sizeof (Stack));
0 commit comments