From 88566cb1ef1cbd5bfa57b8c480c982b6546dd33e Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 26 Jun 2023 22:14:21 +0300 Subject: [PATCH] Fix another unprotected UI access --- client/CServerHandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/CServerHandler.cpp b/client/CServerHandler.cpp index 67e6321ea..c69add76f 100644 --- a/client/CServerHandler.cpp +++ b/client/CServerHandler.cpp @@ -322,6 +322,7 @@ void CServerHandler::applyPacksOnLobbyScreen() boost::unique_lock lock(*mx); while(!packsForLobbyScreen.empty()) { + boost::unique_lock guiLock(*CPlayerInterface::pim); CPackForLobby * pack = packsForLobbyScreen.front(); packsForLobbyScreen.pop_front(); CBaseForLobbyApply * apply = applier->getApplier(typeList.getTypeID(pack)); //find the applier