diff --git a/src/search.cpp b/src/search.cpp index 1bc1e3fa..7cee2be4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -122,7 +122,7 @@ int Thread::search() } } -#ifdef UCI_DO_BEST_MOVE +#if defined(UCI_DO_BEST_MOVE) || defined(QT_GUI_LIB) moveHistory.push_back(key); #endif // UCI_DO_BEST_MOVE