From 300832ebb3fd39314f31110cb3ac86c1473f9b27 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Fri, 2 Aug 2019 09:09:32 +0200 Subject: [PATCH] I think i should protect this --- overlay_experimental/steam_overlay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 0300e81..3dd5d75 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