diff --git a/src/ui/ui_manager.cpp b/src/ui/ui_manager.cpp index 4806524..4730308 100644 --- a/src/ui/ui_manager.cpp +++ b/src/ui/ui_manager.cpp @@ -145,7 +145,10 @@ std::pair UIManager::GetAction(bool lastCardCanBePlayed, CardColor UIManager::SpecifyNextColor() { mIsSpecifyingNextColor = true; - Print(); + { + std::lock_guard lock(mMutex); + Print(); + } CardColor nextColor; ExecuteWithTimePassing([this, &nextColor] {