diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 0300e819..3dd5d750 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -241,6 +241,8 @@ void Steam_Overlay::OverlayProc( int width, int height ) if (!show_overlay) return; + std::lock_guard lock(global_mutex); + int friend_size = friends->size(); // Set the overlay windows to the size of the game window