diff --git a/sources/src/rodent.h b/sources/src/rodent.h index 30ccf22..3e100a0 100755 --- a/sources/src/rodent.h +++ b/sources/src/rodent.h @@ -981,7 +981,7 @@ class cEngine { std::thread mWorker; void StartThinkThread(POS *p) { mDpCompleted = 0; - mWorker = std::thread([&] { Think(p); }); + mWorker = std::thread([this, p] { Think(p); }); } ~cEngine() { WaitThinkThread(); }; // should fix crash on windows on console closing