From 5aac7463ad18b3d630247206ef5c48f7728b1f08 Mon Sep 17 00:00:00 2001 From: rektdie Date: Sat, 10 May 2025 11:27:56 +0200 Subject: [PATCH] changed positionHistory array to vector (games sometimes are longer than 1000 positions) | bench 1136338 --- source/search.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/search.h b/source/search.h index b5121c9..20383ec 100644 --- a/source/search.h +++ b/source/search.h @@ -98,7 +98,7 @@ public: std::array, 2> killerMoves{}; - std::array positionHistory{}; + std::vector positionHistory; TTable TT; @@ -110,7 +110,7 @@ public: TT.Clear(); sw.Restart(); killerMoves = {}; - positionHistory = {}; + positionHistory.reserve(1000); } };