From 64a85bf7805af7bbd6cea347e3decf6cf5013500 Mon Sep 17 00:00:00 2001 From: rektdie Date: Sun, 20 Jul 2025 04:45:10 +0200 Subject: [PATCH] bugfix: passed ctx as std::ref in ParseGo | bench 2695095 --- source/uci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/uci.cpp b/source/uci.cpp index a5e4230..0b1486e 100644 --- a/source/uci.cpp +++ b/source/uci.cpp @@ -85,10 +85,10 @@ static void ParseGo(Board &board, std::string &command, SEARCH::SearchContext* c } if (params.nodes) { - auto worker = std::thread(SEARCH::SearchPosition, std::ref(board), params, std::ref(ctx)); + auto worker = std::thread(SEARCH::SearchPosition, std::ref(board), params, ctx); worker.detach(); } else { - auto worker = std::thread(SEARCH::SearchPosition, std::ref(board), params, std::ref(ctx)); + auto worker = std::thread(SEARCH::SearchPosition, std::ref(board), params, ctx); worker.detach(); } }